grpc_server

package
v0.0.0-...-6401585 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2017 License: MIT Imports: 9 Imported by: 0

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.

Jump to

Keyboard shortcuts

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