Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultBackoff ¶
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.
Click to show internal directories.
Click to hide internal directories.