Documentation
¶
Index ¶
- type AuthSign
- type BasicAuth
- type BearerTokenAuth
- type Client
- func (c *Client) Clone() Client
- func (c *Client) Delete(reqUrl string, res interface{}, params ...map[string]string) (resp *http.Response, err error)
- func (c *Client) Do(method, reqUrl string, data, res interface{}, params ...map[string]string) (resp *http.Response, err error)
- func (c *Client) Get(reqUrl string, res interface{}, params ...map[string]string) (resp *http.Response, err error)
- func (c *Client) Patch(reqUrl string, data interface{}, res interface{}, params ...map[string]string) (resp *http.Response, err error)
- func (c *Client) Post(reqUrl string, data interface{}, res interface{}, params ...map[string]string) (resp *http.Response, err error)
- func (c *Client) PostFileWithFields(reqUrl string, gFile string, fields map[string]string, res interface{}) error
- func (c *Client) Put(reqUrl string, data interface{}, res interface{}, params ...map[string]string) (resp *http.Response, err error)
- func (c *Client) SetAuthSign(auth AuthSign)
- func (c *Client) SetCookie(key string, value string)
- func (c *Client) SetHeader(key, value string)
- func (c *Client) UploadFile(reqUrl string, gFile string, res interface{}, params ...map[string]string) (err error)
- type SigAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BearerTokenAuth ¶
type BearerTokenAuth struct {
Token string
}
Click to show internal directories.
Click to hide internal directories.