backoff

package
v0.0.0-...-81dc835 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Counter

type Counter struct {
	Interval    time.Duration
	MaxInterval time.Duration
	// contains filtered or unexported fields
}

Counter is a simple counter for exponential backoff mechanism with random jitter

func (*Counter) BackoffDuration

func (c *Counter) BackoffDuration() time.Duration

func (*Counter) Increment

func (c *Counter) Increment()

func (*Counter) Reset

func (c *Counter) Reset()

Jump to

Keyboard shortcuts

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