retry

package
v0.0.0-...-2e81f5e Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2020 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(ctx context.Context, attempts int, f func() error, delay func(attempt int) time.Duration) error

Do : try to execute a function, specify the number of attempts, and the execution interval

Types

type Errors

type Errors []error

Errors : errors

func (Errors) Error

func (errs Errors) Error() string

Jump to

Keyboard shortcuts

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