package
0.14.46
Repository: https://github.com/ding-live/ding-golang.git
Documentation: pkg.go.dev

# Functions

IsPermanentError returns true if an error value is or contains a PermanentError in its chain of errors.
IsTemporaryError returns true if an error value is or contains a TemporaryError in its chain of errors.
Permanent creates a PermanentError that signals to a retry loop that it should stop retrying an operation and return the underlying error.
Temporary creates a TemporaryError that signals to a retry loop that an operation can be retried.
TemporaryFromResponse creates a TemporaryError similar to Temporary but additionally parses the Retry-After header from a response to determine the wait interval before the next retry attempt.

# Structs

BackoffStrategy defines the parameters for exponential backoff.
Config configures a retry policy.
PermanentError is an error that signals that some operation has terminally failed and should not be retried.
TemporaryError represents a retryable error and signals to a retry loop that an operation may be retried with an optional wait interval.