Documentation ¶
Index ¶
- type Client
- func (c *Client) Do(req *http.Request) (*http.Response, error)
- func (c *Client) SetCacheKeyPrefix(prefix string) *Client
- func (c *Client) SetCacher(cacher cache.Cacher) *Client
- func (c *Client) SetHTTPClient(httpClient *http.Client) *Client
- func (c *Client) SetSkipCache(skip bool) *Client
- func (c *Client) SetTTL(ttl time.Duration) *Client
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 an enhanced http.Client. By defualt, a caching layer is used for GET requests.
func (*Client) SetCacheKeyPrefix ¶
SetCacheKeyPrefix sets the prefix for all of its cache keys.
func (*Client) SetHTTPClient ¶
SetHTTPClient sets the Client's http.Client.
func (*Client) SetSkipCache ¶
SetSkipCache sets the skipCache option; true to bypass the cache, otherwise cache responses.
Click to show internal directories.
Click to hide internal directories.