ratelimiter

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package ratelimiter provides custom controller-runtime ratelimiters

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Custom

func Custom(
	baseDelay time.Duration,
	maxDelay time.Duration,
	freq int,
	burst int,
) workqueue.RateLimiter

Custom allows to specify all args.

func New

func New() workqueue.RateLimiter

New is a no-arg constructor for a slow rate limiter for a workqueue. It has both overall and per-item rate limiting. The overall is a token bucket and the per-item is exponential

Types

This section is empty.

Jump to

Keyboard shortcuts

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