clientinterceptors

package
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL