backoff

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2023 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrMaxAttemptsReached = errors.New("backoff reached max attempts")

Functions

This section is empty.

Types

type Backoff

type Backoff interface {
	Retry(ctx context.Context) error
	Reset()
}

func NewDefaultSigmoidBackoff

func NewDefaultSigmoidBackoff() Backoff

func NewSigmoidBackoff

func NewSigmoidBackoff(maxTimeout time.Duration, c1, c2 float64, maxAttempts int) Backoff

Jump to

Keyboard shortcuts

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