retry

package
v0.0.0-...-748e1aa Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RetryableError

func RetryableError(err error) error

Types

type Backoff

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

func Fibonacci

func Fibonacci(base time.Duration) Backoff

func (Backoff) Do

func (in Backoff) Do(ctx context.Context, f retry.RetryFunc) error

func (Backoff) WithMaxAttempts

func (in Backoff) WithMaxAttempts(attempts int) Backoff

func (Backoff) WithMaxDuration

func (in Backoff) WithMaxDuration(timeout time.Duration) Backoff

Jump to

Keyboard shortcuts

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