Documentation
¶
Index ¶
- func ExponentialFailureRateLimiter[T comparable](failInitialWait, failMaxWait time.Duration) workqueue.TypedRateLimiter[T]
- func IngressReconcilerRateLimiter[T comparable](rateLimitUpdate float64, waitBeforeUpdate time.Duration) workqueue.TypedRateLimiter[T]
- func ReloadHAProxyRateLimiter(reloadInterval time.Duration) workqueue.TypedRateLimiter[any]
- type Options
- type SyncCallback
- type WorkQueue
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExponentialFailureRateLimiter ¶
func ExponentialFailureRateLimiter[T comparable](failInitialWait, failMaxWait time.Duration) workqueue.TypedRateLimiter[T]
func IngressReconcilerRateLimiter ¶
func IngressReconcilerRateLimiter[T comparable](rateLimitUpdate float64, waitBeforeUpdate time.Duration) workqueue.TypedRateLimiter[T]
func ReloadHAProxyRateLimiter ¶
func ReloadHAProxyRateLimiter(reloadInterval time.Duration) workqueue.TypedRateLimiter[any]
Types ¶
type Options ¶
type Options struct {
// Workers defines the number of worker threads, defaults to 1 if not declared
Workers int
}
type SyncCallback ¶
type SyncCallback[T comparable] func(context.Context, T) error
type WorkQueue ¶
type WorkQueue[T comparable] struct { // contains filtered or unexported fields }
func New ¶
func New[T comparable](sync SyncCallback[T], rateLimiter workqueue.TypedRateLimiter[T], opts ...Options) *WorkQueue[T]
Click to show internal directories.
Click to hide internal directories.