Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DialClientConnPlaintext ¶
func DialClientConnPlaintext(addr string) (*grpc.ClientConn, error)
DialClientConnPlaintext -
func MustDialClientConnPlaintext ¶
func MustDialClientConnPlaintext(addr string) *grpc.ClientConn
MustDialClientConnPlaintext -
Types ¶
type ClientConns ¶
type ClientConns interface { // GetClientConn - A ClientConn can safely be accessed concurrently. // https://github.com/grpc/grpc-go/blob/master/Documentation/concurrency.md GetClientConn(svcName string) *grpc.ClientConn // CloseAll - CloseAll() }
ClientConns -
func MustNewClientConns ¶
func MustNewClientConns(config *nconf.Config) ClientConns
MustNewClientConns -
func NewClientConns ¶
func NewClientConns(config *nconf.Config) (ClientConns, error)
NewClientConns -
type Server ¶
type Server interface { graceful.ShutdownServer GRPCServer() *grpc.Server }
Server -
func MustNewServer ¶
func MustNewServer(config *nconf.Config, opt ...ServerOption) Server
MustNewServer -
type ServerOption ¶
type ServerOption func(*serverOptions)
ServerOption -
func MetricsServerOption ¶
func MetricsServerOption(s nmetrics.Server) ServerOption
MetricsServerOption -
func StreamServerInterceptorOption ¶
func StreamServerInterceptorOption(interceptors ...grpc.StreamServerInterceptor) ServerOption
StreamServerInterceptorOption -
func UnaryServerInterceptorOption ¶
func UnaryServerInterceptorOption(interceptors ...grpc.UnaryServerInterceptor) ServerOption
UnaryServerInterceptorOption -
Click to show internal directories.
Click to hide internal directories.