Documentation
¶
Index ¶
- func IsMemoryErr(err error) bool
- func IsRetryableHTTP(err error) (retryType string, isRetryable bool)
- func IsRetryableNetwork(err error) (retryType string, isRetryable bool)
- func IsTemporary(err error) bool
- func IsTemporaryConnection(err error) (retryType string, isRetryable bool)
- func IsTimeout(err error) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsMemoryErr ¶
func IsRetryableHTTP ¶
IsRetryableHTTP returns if the provided error is considered retryable HTTP error. It also returns the type, in string form, for optional logging and metrics use.
func IsRetryableNetwork ¶
IsRetryableNetwork returns if the provided error is a retryable network related error. It also returns the type, in string form, for optional logging and metrics use.
func IsTemporary ¶
IsTemporary returns true if the provided error is considered retryable temporary error by testing if it complies with an interface implementing `Temporary() bool` and calling the function.
func IsTemporaryConnection ¶
IsTemporaryConnection returns if the provided error was a low level retryable connection error. It also returns the type, in string form, for optional logging and metrics use.
Types ¶
This section is empty.