retrier

package
v0.0.0-...-72c2bb7 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Retry

func Retry(retryFn retry.RetryableFunc) error

Retry default retrier, retries 7 times, with exponential back off

func RetryAttempts

func RetryAttempts(retryFn retry.RetryableFunc, attempts uint) error

RetryAttempts retries attempts times

func RetryIfNot

func RetryIfNot(retryFn retry.RetryableFunc, errMsg string) error

func RetryUnless

func RetryUnless(retryFn retry.RetryableFunc, errType error) error

func RetryUntil

func RetryUntil(retryFn retry.RetryableFunc, until time.Duration, tick time.Duration) error

RetryUntil simple retrier until time runs out, checks every tick, does not do exponential back off

Types

This section is empty.

Jump to

Keyboard shortcuts

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