Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientInt ¶
type ClientInt interface { Do(f Func, shouldRetry ShouldRetryFunc) error RegisterRetriableErrors(rerrs ...RetriableError) UnregisterRetriableErrors(rerrs ...RetriableError) }
ClientInt is an abstraction that retries running a function based on what type of error has occurred
type RetriableError ¶
type RetriableError string
RetriableError is an error that when occurred, we should retry targeted function.
type ShouldRetryFunc ¶
ShouldRetryFunc is a function that consumes the last-known error from the targeted function and determine if we should run it again
Click to show internal directories.
Click to hide internal directories.