backoff

package
v1.3.3-0...-f31c912 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: AGPL-3.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 Backoff

type Backoff interface {
	Do(context.Context) error
}

Backoff is an interface to some (exponential) backoff algorithm.

func NewDecorr

func NewDecorr(base, cap time.Duration, clock clockwork.Clock) Backoff

NewDecorr initializes an algorithm.

func NewDecorrWithMul

func NewDecorrWithMul(base, cap time.Duration, mul int64, clock clockwork.Clock) Backoff

NewDecorrWithMul initializes a backoff algorithm with a given multiplier.

Jump to

Keyboard shortcuts

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