clientinterceptors

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultUnaryTimeout  = 10 * time.Second
	DefaultStreamTimeout = 10 * time.Second
)

Variables

This section is empty.

Functions

func BreakerStream

func BreakerStream(opts ...grpc_hystrix.Option) grpc.StreamClientInterceptor

func BreakerUnary

func BreakerUnary(opts ...grpc_hystrix.Option) grpc.UnaryClientInterceptor

func ShrinkDeadline

func ShrinkDeadline(ctx context.Context, timeout time.Duration) (context.Context, func())

func TimeoutStream

func TimeoutStream(t time.Duration) grpc.StreamClientInterceptor

TimeoutStream returns a new streaming server interceptor for panic recovery.

func TimeoutUnary

func TimeoutUnary(t time.Duration) grpc.UnaryClientInterceptor

TimeoutUnary returns a new unary server interceptor for OpenTracing.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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