backoff

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2025 License: AGPL-3.0, AGPL-3.0-or-later Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MinBackoffDelay        = 100 * time.Millisecond
	MaxBackoffDelay        = 5 * time.Minute
	TimeToLive             = 10 * time.Minute
	BackoffCleanupInterval = 1 * time.Minute
	BackoffMultiplier      = 2
	MaxBackoffJitterCoff   = 100
	MaxBackoffAttempts     = 5
)
View Source
const ErrBackoffEnabled warpnet.WarpError = "backoff enabled"

Variables

This section is empty.

Functions

func NewSimpleBackoff

func NewSimpleBackoff(ctx context.Context, cleanupInterval time.Duration, maxAttempts int) *backoff

Types

This section is empty.

Jump to

Keyboard shortcuts

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