Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewGRPCServer ¶
func NewGRPCServer(listenAddress string, tlsConfig *tls.Config, handler, serverRegistrar interface{}) ifrit.Runner
NewGRPCServer returns an ifrit.Runner for your GRPC server process, given artifacts normally generated from a protobuf service definition by protoc.
tlsConfig is optional. If nil the server will run insecure.
handler must be an implementation of the interface generated by protoc.
serverRegistrar must be the "RegisterXXXServer" method generated by protoc.
Type checking occurs at runtime. Poorly typed `handler` or `serverRegistrar` parameters will result in an error when the Runner is Invoked.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.