Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Option ¶
type Option func(*Config)
func WithRequeueDelay ¶
func WithStaticWindow ¶
type StaticThenExponentialRateLimiter ¶
type StaticThenExponentialRateLimiter[T comparable] struct { // contains filtered or unexported fields }
func NewStaticThenExponentialRateLimiter ¶
func NewStaticThenExponentialRateLimiter[T comparable](cfg Config) (*StaticThenExponentialRateLimiter[T], error)
func (*StaticThenExponentialRateLimiter[T]) Forget ¶
func (r *StaticThenExponentialRateLimiter[T]) Forget(item T)
func (*StaticThenExponentialRateLimiter[T]) NumRequeues ¶
func (r *StaticThenExponentialRateLimiter[T]) NumRequeues(item T) int
func (*StaticThenExponentialRateLimiter[T]) When ¶
func (r *StaticThenExponentialRateLimiter[T]) When(item T) time.Duration
Click to show internal directories.
Click to hide internal directories.