retry

package
v0.0.0-...-a2bc238 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(attempts int, callback func() error, d time.Duration) error

Do will retry attempts time after callback failed, and wait for d duration between each callback

func NewRetriableError

func NewRetriableError(err string) error

NewRetriableError create a retryable error

Types

This section is empty.

Jump to

Keyboard shortcuts

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