Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DurationInterceptor

func DurationInterceptor(ctx context.Context, method string, req, reply interface{},
	cc *grpc.ClientConn, invoker grpc.UnaryInvoker, opts ...grpc.CallOption) error

    @desc 请求失败或者慢请求会打印日志 @auth liuguoqiang 2020-04-21 @param @return

    func ForTimeoutInterceptor

    func ForTimeoutInterceptor(timeout time.Duration) grpc.UnaryClientInterceptor

      @desc 超时插件 @auth liuguoqiang 2020-04-21 @param @return

      Types

      This section is empty.