An lightweight gRPC Server
for embedding to lift off declaring basic of gRPC server.
name
: Name of the server.registerHandler
: Injected function accepting a*grpc.Server
as parameter to register.Server
:*grpc.Server
object.serverOpts
: Options to pass toserver
.
WithRegister
: For injectregisterHandler
function.WithOptions
: Append options or middleware toServer
.
ServeTCP
: start the server by HTTP2.
An lightweight gRPC Gateway
for embedding to lift off declaring basic of gRPC getaway server.
name
: Name of the server.clientRegisterHandler
: Injected function accepting a*runtime.ServeMux
as parameter to gRPC client registration.gwmux
:*runtime.ServeMux
object.Handler
:http.Handler
HTTP handler, commonly to add middleware.Server
:http.Server
object.
WithClientRegister
: For injectclientRegisterHandler
function.WithHandlers
: To add handlers toServer
.
Serve
: start the server.