servers

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGateway

func NewGateway(ctx context.Context, conn *grpc.ClientConn,
	registerFuncs ...func(ctx context.Context, serveMux *runtime.ServeMux, clientConn *grpc.ClientConn) error) (http.Handler, error)

Types

type GatewayServer

type GatewayServer struct {
	// contains filtered or unexported fields
}

func NewGatewayServer

func NewGatewayServer(service string, listenAddr, grpcAddr string,
	handlers []func(ctx context.Context, serveMux *runtime.ServeMux, clientConn *grpc.ClientConn) error) *GatewayServer

func (*GatewayServer) Run

func (g *GatewayServer) Run() error

type GrpcServer

type GrpcServer struct {
	LogLevel   string
	ListenAddr string
	// contains filtered or unexported fields
}

func NewGRPCServer

func NewGRPCServer(listenAddr string, routes route.GRPCRouterRegister) *GrpcServer

func (*GrpcServer) Run

func (m *GrpcServer) Run() error

func (*GrpcServer) Stop

func (m *GrpcServer) Stop() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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