Documentation ¶
Index ¶
- Variables
- func AddSomeResponse(resp *http.Response) []byte
- func RetryPolicy(ctx context.Context, resp *http.Response, err error) (bool, error)
- type Client
- type ClientResponse
- type Option
- func WithBackoff(backoff retryablehttp.Backoff) Option
- func WithLog(log retryablehttp.LeveledLogger) Option
- func WithPooled(pooled bool) Option
- func WithRetryMax(retryMax int) Option
- func WithRetryPolicy(retryPolicy retryablehttp.CheckRetry) Option
- func WithRetryWaitMax(retryWaitMax time.Duration) Option
- func WithRetryWaitMin(retryWaitMin time.Duration) Option
- func WithSkipVerify(skip bool) Option
- type Retry
- type RetryCodesType
Constants ¶
This section is empty.
Variables ¶
View Source
var ResponseErrLimit int64 = 1024
Functions ¶
func AddSomeResponse ¶
AddSomeResponse not close body, retry library draining it.
Types ¶
type Client ¶
type Option ¶
type Option func(options *options)
func WithBackoff ¶
func WithBackoff(backoff retryablehttp.Backoff) Option
func WithPooled ¶
func WithRetryMax ¶
func WithRetryPolicy ¶
func WithRetryPolicy(retryPolicy retryablehttp.CheckRetry) Option
func WithRetryWaitMax ¶
func WithRetryWaitMin ¶
func WithSkipVerify ¶
type RetryCodesType ¶
type RetryCodesType string
const RetryCodesValue RetryCodesType = "retryCodeValue"
Click to show internal directories.
Click to hide internal directories.