server

package
v0.0.0-...-8e9219e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 26, 2021 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Start

func Start(
	config Config,
	protoService func(*grpc.Server),
	opts ...grpc.ServerOption,
) (error, *grpc.Server, net.Listener)

Start - Method to Start gRPC server

func StartHTTPProxy

func StartHTTPProxy(
	config Config,
	openAPIDir string,
	protoHandlerFromEndpoint func(context.Context, *runtime.ServeMux, string, []grpc.DialOption) error,
) *http.Server

func StopWatch

func StopWatch(grpcServer *grpc.Server, lis net.Listener, gwServer *http.Server)

Types

type Config

type Config struct {
	Grpc struct {
		Host string
		Port int
	}
	HTTP struct {
		Host string
		Port int
	}
	NewRelic newrelictracing.Config
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL