Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamServerCapacityLimiterInterceptor ¶
func StreamServerCapacityLimiterInterceptor(serverName string, limit int) grpc.StreamServerInterceptor
StreamServerCapacityLimiterInterceptor returns a grpc server stream interceptor that limits amount of concurrently processed requests. serverName is a string that will be put into metrics label.
func UnaryServerCapacityLimiterInterceptor ¶
func UnaryServerCapacityLimiterInterceptor(serverName string, limit int) grpc.UnaryServerInterceptor
UnaryServerCapacityLimiterInterceptor returns a grpc server unary interceptor that limits amount of concurrently processed requests. serverName is a string that will be put into metrics label.
func UnaryServerLoggerInterceptor ¶
func UnaryServerLoggerInterceptor(logger *zap.Logger) grpc.UnaryServerInterceptor
UnaryServerLoggerInterceptor return a grpc server unary interceptor that puts given logger into request's context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.