interceptor

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 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.

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