Documentation ¶
Index ¶
- type Client
- func (client *Client) Get(c context.Context, uri string, params interface{}, res interface{}) (err error)
- func (client *Client) NewRequest(method, uri string, params interface{}) (req *xhttp.Request, err error)
- func (client *Client) Post(c context.Context, uri string, params interface{}, res interface{}) (err error)
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 client is http client.
func (*Client) Get ¶
func (client *Client) Get(c context.Context, uri string, params interface{}, res interface{}) (err error)
Get a json req http get.
Click to show internal directories.
Click to hide internal directories.