backoff

package
v2.38.0 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 4

Documentation

Index

Constants

View Source
const (
	BACKOFF_JITTER     = 0.10
	BACKOFF_MULTIPLIER = backoff.DefaultMultiplier
)

Variables

This section is empty.

Functions

func WaitUntil

func WaitUntil(
	ctx context.Context,
	backoffSettings BackoffSettings,
	operation backoff.Operation,
) error

Types

type BackoffSettings

type BackoffSettings struct {
	InitialInterval time.Duration
	MaxInterval     time.Duration
	MaxElapsedTime  time.Duration
	Multiplier      float64
	Jitter          float64
}

Jump to

Keyboard shortcuts

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