Documentation
¶
Index ¶
- type Client
- func (c *Client) DoRequest(req *resty.Request) (*resty.Response, error)
- func (c *Client) DoRequestWithResult(req *resty.Request, res interface{}) (*resty.Response, error)
- func (c *Client) NewRequest(method string, path string) (*resty.Request, error)
- func (c *Client) SetTimeout(timeout time.Duration) *Client
- type Options
- type OptionsFunc
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
}
func NewClient ¶
func NewClient(optFns ...OptionsFunc) (*Client, error)
func (*Client) DoRequestWithResult ¶
func (*Client) NewRequest ¶
type OptionsFunc ¶ added in v0.4.25
type OptionsFunc func(*Options)
func WithAkSk ¶ added in v0.4.25
func WithAkSk(ak, sk string) OptionsFunc
Click to show internal directories.
Click to hide internal directories.