interceptor

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2026 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 retries the stream methods listed in RPCNeedRetry.

func NewUnaryRetry

func NewUnaryRetry(retryOpts RetryOptions) grpc.UnaryClientInterceptor

NewUnaryRetry makes unary RPC retry on error

Types

type RetryOptions

type RetryOptions struct {
	Max uint64
}

Jump to

Keyboard shortcuts

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