retry

package
v1.21.3 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultBackoff = wait.Backoff{
	Steps:    math.MaxInt32,
	Duration: 5 * time.Second,
	Factor:   1.1,
	Jitter:   0.1,
}

Functions

func Always

func Always(fn func() error) error

func AlwaysError

func AlwaysError(err error) bool

func NotContextCancelError

func NotContextCancelError(err error) bool

func OnError

func OnError(isRetry func(error) bool, fn func() error) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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