Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddHandlerFunc ¶
AddHandlerFunc type for add handler
type ClientRegisterFunc ¶
ClientRegisterFunc injector function for runtime.ServeMux register
type GrpcGatewayServer ¶
type GrpcGatewayServer struct { Handler http.Handler Server *http.Server // contains filtered or unexported fields }
GrpcGatewayServer server object
func NewGrpcGatewayServer ¶
func NewGrpcGatewayServer(name string) *GrpcGatewayServer
NewGrpcGatewayServer constructor
func (*GrpcGatewayServer) Serve ¶
func (s *GrpcGatewayServer) Serve(host string, port int) (err error)
Serve run server
func (*GrpcGatewayServer) WithClientRegister ¶
func (s *GrpcGatewayServer) WithClientRegister(handler ClientRegisterFunc) *GrpcGatewayServer
WithClientRegister injection method for gRPC client registration
func (*GrpcGatewayServer) WithHandlers ¶
func (s *GrpcGatewayServer) WithHandlers(handlerFuncs ...AddHandlerFunc) *GrpcGatewayServer
WithHandlers add handler
type GrpcServer ¶
GrpcServer server object
func (*GrpcServer) ServeTCP ¶
func (s *GrpcServer) ServeTCP(host string, port int) (err error)
ServeTCP run server in TCP
func (*GrpcServer) WithOptions ¶
func (s *GrpcServer) WithOptions(options ...grpc.ServerOption) *GrpcServer
WithOptions injection method for gRPC server options, middlewares,...
func (*GrpcServer) WithRegister ¶
func (s *GrpcServer) WithRegister(handler RegisterFunc) *GrpcServer
WithRegister injection method for gRPC server registration
type RegisterFunc ¶
RegisterFunc registering handler type
Click to show internal directories.
Click to hide internal directories.