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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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