package
1.1.1
Repository: https://github.com/userzhangjinlong/go-zero.git
Documentation: pkg.go.dev

# Functions

DontLogContentForMethod disable logging content for given method.
SetSlowThreshold sets the slow threshold.
StreamAuthorizeInterceptor returns a func that uses given authenticator in processing stream requests.
StreamBreakerInterceptor is an interceptor that acts as a circuit breaker.
StreamRecoverInterceptor catches panics in processing stream requests and recovers.
StreamTracingInterceptor returns a grpc.StreamServerInterceptor for opentelemetry.
UnaryAuthorizeInterceptor returns a func that uses given authenticator in processing unary requests.
UnaryBreakerInterceptor is an interceptor that acts as a circuit breaker.
UnaryPrometheusInterceptor reports the statistics to the prometheus server.
UnaryRecoverInterceptor catches panics in processing unary requests and recovers.
UnarySheddingInterceptor returns a func that does load shedding on processing unary requests.
UnaryStatInterceptor returns a func that uses given metrics to report stats.
UnaryTimeoutInterceptor returns a func that sets timeout to incoming unary requests.
UnaryTracingInterceptor is a grpc.UnaryServerInterceptor for opentelemetry.

# Structs

No description provided by the author
StatConf defines the static configuration for stat interceptor.