gateway

package
v0.0.0-...-e1c0fc4 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2018 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gateway

type Gateway struct {
	Creds    credentials.TransportCredentials
	DialOpts []grpc.DialOption
	Host     string
	Port     int
	//mux        *http.ServeMux
	ListenAddr string
	Mux        *runtime.ServeMux
	Services   map[string]*server.Server
}

Gateway represents an implementation of the GatewayServer interface.

func (*Gateway) HandleSig

func (gw *Gateway) HandleSig()

HandleSig ...

func (*Gateway) ListenAndServe

func (gw *Gateway) ListenAndServe() error

ListenAndServe ...

func (*Gateway) LoadEndpoint

func (gw *Gateway) LoadEndpoint(ctx context.Context, serviceConf config.Service, regFn registerFromEndpoint)

LoadEndpoint ...

Jump to

Keyboard shortcuts

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