Versions in this module Expand all Collapse all v1 v1.1.0 Feb 27, 2026 v1.0.6 Feb 26, 2026 Changes in this version + const DefaultBaseDelay + const DefaultMaxAttempts + const DefaultMaxDelay + func ClassifyHTTPResponse(resp *http.Response, bodyForError []byte) error + func Do(ctx context.Context, p Policy, fn func() error) error + func IsRetryable(err error) bool + type Policy struct + BaseDelay time.Duration + MaxAttempts int + MaxDelay time.Duration + func DefaultPolicy() Policy + type RetryableError struct + Err error + RetryAfter time.Duration + func (e *RetryableError) Error() string + func (e *RetryableError) Unwrap() error