controller

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2023 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(queue workqueue.RateLimitingInterface, syncer func(string) 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(queue workqueue.RateLimitingInterface, syncer func(string) 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