Documentation ¶
Index ¶
- Variables
- type Client
- func (c *Client) Do(req *retryablehttp.Request) (*http.Response, error)
- func (c *Client) Get(url string) (*http.Response, error)
- func (c *Client) Head(url string) (*http.Response, error)
- func (c *Client) Post(url, bodyType string, body interface{}) (*http.Response, error)
- func (c *Client) PostForm(url string, data url.Values) (*http.Response, error)
- func (c *Client) StandardClient() *http.Client
- type Logger
- type RoundTripper
- type UserNetworkError
Constants ¶
This section is empty.
Variables ¶
View Source
var ( DefaultTimeout = time.Second * 30 DefaultRetries = 5 DefaultClient = NewClient(DefaultTimeout, DefaultRetries) )
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
*retryablehttp.Client
}
func (*Client) StandardClient ¶
type RoundTripper ¶
type RoundTripper struct {
// contains filtered or unexported fields
}
RoundTripper implements the http.RoundTripper interface, using a retrying HTTP client to execute requests.
type UserNetworkError ¶
type UserNetworkError struct {
// contains filtered or unexported fields
}
func (*UserNetworkError) Error ¶
func (e *UserNetworkError) Error() string
func (*UserNetworkError) ExitCode ¶
func (e *UserNetworkError) ExitCode() int
Click to show internal directories.
Click to hide internal directories.