backoff

package
v1.3.6 Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backoff

type Backoff interface {
	Next() bool
	Reset()
}

Backoff used for retry sleep backoff

type ConstantBackoff

type ConstantBackoff struct {
	Sleep time.Duration
	Max   int
	// contains filtered or unexported fields
}

ConstantBackoff implements Backoff interface with constant sleep time

func (*ConstantBackoff) Next

func (c *ConstantBackoff) Next() bool

func (*ConstantBackoff) Reset

func (c *ConstantBackoff) Reset()

Jump to

Keyboard shortcuts

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