throttle

package
v0.0.0-...-540bb61 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Components

type Components interface {
	ArangoClusterSynchronization() Throttle
	ArangoMember() Throttle
	ArangoTask() Throttle
	Node() Throttle
	PersistentVolume() Throttle
	PersistentVolumeClaim() Throttle
	Pod() Throttle
	PodDisruptionBudget() Throttle
	Secret() Throttle
	Service() Throttle
	ServiceAccount() Throttle
	ServiceMonitor() Throttle
	Endpoints() Throttle

	Get(c definitions.Component) Throttle
	Invalidate(components ...definitions.Component)

	Counts() definitions.ComponentCount
	Copy() Components
}

func NewAlwaysThrottleComponents

func NewAlwaysThrottleComponents() Components

func NewThrottleComponents

func NewThrottleComponents(acs, am, at, node, pvc, pod, pv, pdb, secret, service, serviceAccount, sm, endpoints time.Duration) Components

type Inspector

type Inspector interface {
	GetThrottles() Components
}

type Throttle

type Throttle interface {
	Invalidate()
	Throttle() bool
	Delay()

	Copy() Throttle

	Count() int
}

func NewAlwaysThrottle

func NewAlwaysThrottle() Throttle

func NewThrottle

func NewThrottle(delay time.Duration) Throttle

Jump to

Keyboard shortcuts

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