workqueue

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExponentialTimedFailureRateLimiter

func NewExponentialTimedFailureRateLimiter[T comparable](baseDelay time.Duration, maxDelay time.Duration) workqueue.TypedRateLimiter[T]

Types

type FailureRequest

type FailureRequest struct {
	// The number of times the request has been attempted
	Attempts int
	// The time at which the request was last attempted
	LastAttempt time.Time
}

type TypedItemExponentialTimedFailureRateLimiter

type TypedItemExponentialTimedFailureRateLimiter[T comparable] struct {
	// contains filtered or unexported fields
}

func (*TypedItemExponentialTimedFailureRateLimiter[T]) Forget

func (r *TypedItemExponentialTimedFailureRateLimiter[T]) Forget(item T)

func (*TypedItemExponentialTimedFailureRateLimiter[T]) NumRequeues

func (r *TypedItemExponentialTimedFailureRateLimiter[T]) NumRequeues(item T) int

func (*TypedItemExponentialTimedFailureRateLimiter[T]) When

Jump to

Keyboard shortcuts

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