Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamServerInterceptor ¶
func StreamServerInterceptor(opts ...Option) grpc.StreamServerInterceptor
StreamServerInterceptor returns a new streaming server interceptor.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor
UnaryServerInterceptor returns a new unary server interceptors.
Types ¶
type Option ¶
type Option func(*options)
Option function for set options
func WithDecider ¶
func WithDecider(f grpc_logging.Decider) Option
WithDecider customizes the function for deciding if the gRPC interceptor logs should log.
func WithErrorToCode ¶
func WithErrorToCode(f grpc_logging.ErrorToCode) Option
WithErrorToCode customizes the function for mapping errors to error codes.
func WithForceOutputColor ¶
WithForceOutputColor customizes the function for force enable output color.
Click to show internal directories.
Click to hide internal directories.