throttler

package
v1.8.13 Latest Latest
Warning

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

Go to latest
Published: May 22, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Throttler

type Throttler interface {
	Close()
	Throttle(context.Context)
}

func NewConstantRateThrottler

func NewConstantRateThrottler(frequency time.Duration, metricLabel string) Throttler

NewConstantRateThrottler constructs a constantRateThrottler which can be used to control the rate of recursive resource consumption.

func NewNoopThrottler

func NewNoopThrottler() Throttler

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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