clientinterceptors

package
Version: v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2020 License: Apache-2.0 Imports: 7 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