backoff

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2023 License: Apache-2.0 Imports: 2 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 struct {
	// contains filtered or unexported fields
}

Backoff is a helper to allow customized polling with github.com/cenkalti/backoff/v4

func NewBackoff

func NewBackoff(ctx context.Context) *Backoff

NewBackoff Creates a new backoff

func (*Backoff) Context

func (b *Backoff) Context() context.Context

Context Satisfies github.com/cenkalti/backoff/v4 BackOff interface

func (*Backoff) NextBackOff

func (b *Backoff) NextBackOff() time.Duration

NextBackOff Satisfies github.com/cenkalti/backoff/v4 BackOff interface

func (*Backoff) Reset

func (b *Backoff) Reset()

Reset Satisfies github.com/cenkalti/backoff/v4 BackOff interface

Jump to

Keyboard shortcuts

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