Versions in this module Expand all Collapse all v0 v0.1.4 Aug 8, 2020 Changes in this version + func Get(ctx context.Context, c Client, url string, header http.Header) (*http.Response, error) + func RetryAll(_ int) bool + func RetryNone(_ int) bool + func StopOrContinue(err error) error + type Client interface + Do func(req *http.Request) (*http.Response, error) + Get func(url string) (*http.Response, error) + func Default() Client + func WithRetries(c Client, retries int, delay time.Duration, rp RetryPolicy) Client + func WithThrottling(c Client, period time.Duration, requestsPerPeriod int) Client + func WithUserAgent(c Client, userAgent string) Client + type Config struct + UserAgent string + func (conf *Config) AddFlags() + func (conf *Config) Configure(c Client) Client + func (conf *Config) Validate() error + type Err struct + Body string + Code int + Status string + func (e *Err) Error() string + type FailedRetries int + func (fr FailedRetries) Error() string + type RetryPolicy func(status int) bool + func Retry(statuses ...int) RetryPolicy + func (rp *RetryPolicy) Set(s string) error + func (rp *RetryPolicy) String() string