interceptors

package
v0.0.0-...-c1f4788 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: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GrpcRetry

type GrpcRetry struct {
	// contains filtered or unexported fields
}

func NewGrpcRetry

func NewGrpcRetry(options ...RetryOption) *GrpcRetry

func (*GrpcRetry) StreamClientInterceptor

func (g *GrpcRetry) StreamClientInterceptor(ctx context.Context, desc *grpc.StreamDesc, cc *grpc.ClientConn, method string, streamer grpc.Streamer, opts ...grpc.CallOption) (grpc.ClientStream, error)

func (*GrpcRetry) UnaryClientInterceptor

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

type RetryOption

type RetryOption func(r *GrpcRetry)

func RetryCodes

func RetryCodes(codes ...int) RetryOption

Jump to

Keyboard shortcuts

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