Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is used to make HTTP requests. It adds additional functionality like automatic retries to tolerate minor outages and rate limiting
type Option ¶
type Option func(c *Client)
Option func type
func WithLogger ¶
WithLogger sets logger limiter, Infinite by default
func WithRateLimiter ¶
WithRateLimiter sets rate limiter, Infinite by default
func WithRetryableHTTP ¶
func WithRetryableHTTP(client *retryablehttp.Client) Option
WithRetryableHTTP sets retryablehttp client, retryablehttp.New() by default
Click to show internal directories.
Click to hide internal directories.