backoff

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMaximumBackOffTimeElapsedExceeded = errors.New("maximum backOff elapsed time exceeded")

Functions

func Loop

func Loop(settings Settings, logger logging.Logger, handler func(logger logging.Logger) (bool, error)) error

Types

type Settings

type Settings struct {
	InitialInterval     int
	RandomizationFactor float64
	Multiplier          float64
	MaxInterval         int
	MaxElapsedTime      int
}

Jump to

Keyboard shortcuts

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