Documentation ¶
Index ¶
- type Client
- func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (res *http.Response, err error)
- func (c *Client) Get(ctx context.Context, url string, params url.Values, v interface{}) (*http.Response, error)
- func (c *Client) NewRequest(method, url string, body interface{}) (r *http.Request, err error)
- func (c *Client) Post(ctx context.Context, url string, params url.Values, v interface{}) (*http.Response, error)
- type ClientConfig
- type ServerConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶ added in v0.1.8
type Client struct {
// contains filtered or unexported fields
}
Client .
func (*Client) Do ¶ added in v0.1.8
func (c *Client) Do(ctx context.Context, req *http.Request, v interface{}) (res *http.Response, err error)
Do .
func (*Client) Get ¶ added in v0.1.8
func (c *Client) Get(ctx context.Context, url string, params url.Values, v interface{}) (*http.Response, error)
Get GET request to the URL
func (*Client) NewRequest ¶ added in v0.1.8
NewRequest .
type ClientConfig ¶ added in v0.1.10
type ClientConfig struct {
UserAgent string `toml:"user_agent"`
}
ClientConfig .
type ServerConfig ¶
ServerConfig .
Click to show internal directories.
Click to hide internal directories.