Versions in this module Expand all Collapse all v0 v0.1.0 Jan 19, 2022 Changes in this version + var DefaultBackOff = backoff.ExponentialBackOff + var DefaultRateLimiter = rate.NewLimiter(rate.Limit(1), 1) + type Client struct + Backoff backoff.BackOff + Requester Requester + Waiter Waiter + func New(opts ...Option) *Client + func NewWithDefaults() *Client + func (c *Client) Do(req *http.Request) (*http.Response, error) + type HTTPError struct + Body string + Code int + Response *http.Response + func (e HTTPError) Error() string + type Option func(c *Client) + func WithBackOff(bo backoff.BackOff) Option + func WithHttpClient(requester Requester) Option + func WithRateLimiter(waiter Waiter) Option + type Requester interface + Do func(req *http.Request) (*http.Response, error) + type Waiter interface + Wait func(ctx context.Context) error