controller

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2024 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DelayingWorker

func DelayingWorker[T comparable](queue workqueue.TypedRateLimitingInterface[T], syncer func(T) error, duration time.Duration, maxRetry int) func()

DelayingWorker returns a long-running worker function that will re-queue the item after the given duration has passed if an error happens when processing it.

func RateLimitedWorker

func RateLimitedWorker[T comparable](queue workqueue.TypedRateLimitingInterface[T], syncer func(T) error, maxRetry int) func()

RateLimitedWorker returns a long-running worker function that will re-queue the item by AddRateLimited function if an error happens when processing it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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