Documentation
¶
Index ¶
- func LinodeBusyRetryCondition(r *resty.Response, _ error) bool
- func RespectRetryAfter(client *resty.Client, resp *resty.Response) (time.Duration, error)
- func ServiceUnavailableRetryCondition(r *resty.Response, _ error) bool
- func TooManyRequestsRetryCondition(r *resty.Response, _ error) bool
- type ConditionFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LinodeBusyRetryCondition ¶
LinodeBusyRetryCondition is a ConditionFunc that retries requests which have resulted in "Linode busy." errors.
func RespectRetryAfter ¶
RespectRetryAfter configures the resty client to respect Retry-After headers.
func ServiceUnavailableRetryCondition ¶
ServiceUnavailableRetryCondition is a ConditionFunc that retries requests have resulted in an HTTP status code 503.
Types ¶
type ConditionFunc ¶
type ConditionFunc resty.RetryConditionFunc
ConditionFunc represents a function that evaluates whether a request should be retried, given the response and error.
Click to show internal directories.
Click to hide internal directories.