retry

package
v0.7.3 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultBackoff

func DefaultBackoff() backoff.BackOff

DefaultBackoff returns the default backoff.

func Retry

func Retry(
	ctx context.Context,
	le *logrus.Entry,
	f func(context.Context) error,
	bo backoff.BackOff,
) error

Retry uses a backoff to re-try a process. If the process returns nil or context canceled, it exits. If bo is nil, a default one is created. The defaults are: 500Ms initial backoff,

Types

This section is empty.

Jump to

Keyboard shortcuts

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