Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ProvidersGRPC = wire.NewSet( NewGRPCServer, ) )
Functions ¶
func LoggingInterceptor ¶
func LoggingInterceptor(logger logging.Logger) grpc.UnaryServerInterceptor
func RegisterGRPCServer ¶
RegisterGRPCServer registers a *Server with the injector. Prerequisites: []grpc.UnaryServerInterceptor, []grpc.StreamServerInterceptor, and []RegistrationFunc must be registered in the injector before calling this.
Types ¶
type RegistrationFunc ¶
RegistrationFunc is i.e. protobuf.RegisterSomeExampleServiceServer(grpcServer, &exampleServiceServerImpl{}).
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewGRPCServer ¶
func NewGRPCServer( cfg *Config, logger logging.Logger, tracerProvider tracing.TracerProvider, unaryServerInterceptors []grpc.UnaryServerInterceptor, streamServerInterceptors []grpc.StreamServerInterceptor, registrationFunctions ...RegistrationFunc, ) (*Server, error)
Click to show internal directories.
Click to hide internal directories.