clientinterceptors

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: May 8, 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