Documentation ¶
Index ¶
- func BreakerInterceptor(ctx context.Context, method string, req, reply interface{}, ...) error
- func DurationInterceptor(ctx context.Context, method string, req, reply interface{}, ...) error
- func PrometheusInterceptor(ctx context.Context, method string, req, reply interface{}, ...) error
- func TimeoutInterceptor(timeout time.Duration) grpc.UnaryClientInterceptor
- func TracingInterceptor(ctx context.Context, method string, req, reply interface{}, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BreakerInterceptor ¶
func BreakerInterceptor(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
func DurationInterceptor ¶
func DurationInterceptor(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
func PrometheusInterceptor ¶ added in v1.0.17
func PrometheusInterceptor(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
func TimeoutInterceptor ¶
func TimeoutInterceptor(timeout time.Duration) grpc.UnaryClientInterceptor
func TracingInterceptor ¶
func TracingInterceptor(ctx context.Context, method string, req, reply interface{}, cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.