Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SimpleInterceptorLogger ¶
func SimpleInterceptorLogger(l *log.Logger) grpc.UnaryServerInterceptor
SimpleInterceptorLogger is a simplified gRPC server request logger. For an alternative, see the example from go-grpc-middleware/interceptors/logging/examples/zap/example_test.go
Types ¶
type Option ¶
type Option func(*Server)
func WithSrvOpt ¶
func WithSrvOpt(srvOpt grpc.ServerOption) Option
func WithTimeout ¶ added in v0.7.6
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) RegisterService ¶
func (s *Server) RegisterService(sd *grpc.ServiceDesc, ss interface{})
Click to show internal directories.
Click to hide internal directories.