Documentation ¶ Index ¶ func Retry(attempts int, sleep time.Duration, fn func() error) error func RetryIf(attempts int, sleep time.Duration, fn func() error, predicate func(error) bool) (err error) func RetryIfErrorIs(attempts int, sleep time.Duration, fn func() error, target error) error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Retry ¶ func Retry(attempts int, sleep time.Duration, fn func() error) error func RetryIf ¶ func RetryIf(attempts int, sleep time.Duration, fn func() error, predicate func(error) bool) (err error) func RetryIfErrorIs ¶ func RetryIfErrorIs(attempts int, sleep time.Duration, fn func() error, target error) error Types ¶ This section is empty. Source Files ¶ View all Source files retry.go Click to show internal directories. Click to hide internal directories.