Documentation ¶
Index ¶
- func BreakerUnaryClientInterceptor(name string, maxRequest uint32, interval, timeout time.Duration, ...) grpc.UnaryClientInterceptor
- func MetricUnaryClientInterceptor() grpc.UnaryClientInterceptor
- func TimeoutUnaryClientInterceptor(timeout time.Duration, slowThreshold time.Duration) grpc.UnaryClientInterceptor
- func TraceUnaryClientInterceptor() grpc.UnaryClientInterceptor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BreakerUnaryClientInterceptor ¶
func BreakerUnaryClientInterceptor(name string, maxRequest uint32, interval, timeout time.Duration, readyToTrip func(counts gobreaker.Counts) bool) grpc.UnaryClientInterceptor
熔断器,配置可以考虑用option选项模式实现
func MetricUnaryClientInterceptor ¶
func MetricUnaryClientInterceptor() grpc.UnaryClientInterceptor
func TraceUnaryClientInterceptor ¶
func TraceUnaryClientInterceptor() grpc.UnaryClientInterceptor
trace middleware
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.