inframiddleware

package
v1.3.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 19, 2024 License: MIT Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL