backoff

package
v1.101.0 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrBadRequest = errors.New("bad request")

ErrBadRequest is an error returned on bad request

Functions

This section is empty.

Types

type Backoff

type Backoff struct {
	// contains filtered or unexported fields
}

Backoff describes object with backoff policy params

func New

func New() *Backoff

New initialize backoff object

func (*Backoff) Retry

func (b *Backoff) Retry(ctx context.Context, cb retryableFunc) (uint64, error)

Retry process retries until all attempts are completed

Jump to

Keyboard shortcuts

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