Documentation ¶
Index ¶
- func GetValidator() *validator.Validate
- func GoogleSREBreaker(breakers *breaker.BreakerGroup) grpc.UnaryClientInterceptor
- func LoggerForUnaryClient(config *config.ClientConfig) grpc.UnaryClientInterceptor
- func LoggerForUnaryServer(config *config.ServerConfig) grpc.UnaryServerInterceptor
- func Metric() grpc.UnaryServerInterceptor
- func RecoveryForUnaryClient(config *config.ClientConfig) grpc.UnaryClientInterceptor
- func RecoveryForUnaryServer(config *config.ServerConfig) grpc.UnaryServerInterceptor
- func SentinelForUnaryClient() grpc.UnaryClientInterceptor
- func SentinelForUnaryServer() grpc.UnaryServerInterceptor
- func TraceForUnaryClient() grpc.UnaryClientInterceptor
- func TraceForUnaryServer() grpc.UnaryServerInterceptor
- func ValidateForUnaryServer() grpc.UnaryServerInterceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetValidator ¶
func GetValidator() *validator.Validate
GetValidator returns the underlying validator engine which powers the StructValidator implementation.
func GoogleSREBreaker ¶
func GoogleSREBreaker(breakers *breaker.BreakerGroup) grpc.UnaryClientInterceptor
GoogleSREBreaker breaker based on google sre. It rejects request adaptively based on server response
func LoggerForUnaryClient ¶
func LoggerForUnaryClient(config *config.ClientConfig) grpc.UnaryClientInterceptor
LoggerForUnaryClient log unary client request details
func LoggerForUnaryServer ¶
func LoggerForUnaryServer(config *config.ServerConfig) grpc.UnaryServerInterceptor
LoggerForUnaryServer log unary server response details
func Metric ¶
func Metric() grpc.UnaryServerInterceptor
Metric metric handler, currently only metric at server side
func RecoveryForUnaryClient ¶
func RecoveryForUnaryClient(config *config.ClientConfig) grpc.UnaryClientInterceptor
RecoveryForUnaryClient recover unary client once it panics
func RecoveryForUnaryServer ¶
func RecoveryForUnaryServer(config *config.ServerConfig) grpc.UnaryServerInterceptor
RecoveryForUnaryServer recover unary server once it panics
func SentinelForUnaryClient ¶
func SentinelForUnaryClient() grpc.UnaryClientInterceptor
SentinelForUnaryClient is client side sentinel
func SentinelForUnaryServer ¶
func SentinelForUnaryServer() grpc.UnaryServerInterceptor
SentinelForUnaryServer is server side sentinel
func TraceForUnaryClient ¶
func TraceForUnaryClient() grpc.UnaryClientInterceptor
TraceForUnaryClient trace unary client side details
func TraceForUnaryServer ¶
func TraceForUnaryServer() grpc.UnaryServerInterceptor
TraceForUnaryServer trace unary server side details
func ValidateForUnaryServer ¶
func ValidateForUnaryServer() grpc.UnaryServerInterceptor
ValidateForUnaryServer validate input request params
Types ¶
This section is empty.