interceptor

package
v0.0.0-...-b9632e7 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var RPCNeedRetry = map[string]struct{}{
	"/pb.CoreRPC/WorkloadStatusStream": {},
	"/pb.CoreRPC/WatchServiceStatus":   {},
}

RPCNeedRetry records rpc stream methods to retry

Functions

func NewStreamRetry

func NewStreamRetry(retryOpts RetryOptions) grpc.StreamClientInterceptor

NewStreamRetry make specific stream retry on error

func NewUnaryRetry

func NewUnaryRetry(retryOpts RetryOptions) grpc.UnaryClientInterceptor

NewUnaryRetry makes unary RPC retry on error

Types

type RetryOptions

type RetryOptions struct {
	Max int
}

RetryOptions .

Jump to

Keyboard shortcuts

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