Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsPermanent ¶
IsPermanent tests whether an error is not a *TransientError.
func IsTransient ¶
IsTransient tests whether an error is a *TransientError.
func NetworkConnectionError ¶
NetworkConnectionError tests an error to see whether it was caused by a network connection failing. Depending on context, the network operation could be retried.
Types ¶
type TransientError ¶
type TransientError struct {
Err error
}
TransientError signals that the operation can be retried. This is the opposite to PermanentError in github.com/cenkalti/backoff/v4
func (*TransientError) Error ¶
func (e *TransientError) Error() string
Error implements the error interface.
func (*TransientError) Is ¶
func (e *TransientError) Is(target error) bool
Is performs a shallow comparison and is used by errors.Is.
func (*TransientError) Unwrap ¶
func (e *TransientError) Unwrap() error
Unwrap provides access to the contained error.
Click to show internal directories.
Click to hide internal directories.