Documentation
¶
Index ¶
- func CheckResponse(r *http.Response) error
- type Client
- func (c *Client) BaseURL() *url.URL
- func (c *Client) Do(req *retryablehttp.Request, v interface{}) (*Response, error)
- func (c *Client) NewRequest(method string, path string, requestQuery interface{}, requestBody interface{}) (*retryablehttp.Request, error)
- func (c *Client) SetBaseURL(urlStr string) error
- func (c *Client) UploadRequest(method, path string, content io.Reader, filename string) (*retryablehttp.Request, error)
- type ErrorResponse
- type Info
- type ListOptions
- type Response
- type Swagger
- type SwaggerService
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckResponse ¶
Types ¶
type Client ¶
type Client struct { UserAgent string Swagger *SwaggerService // contains filtered or unexported fields }
func (*Client) NewRequest ¶
func (*Client) SetBaseURL ¶
type ErrorResponse ¶
func (*ErrorResponse) Error ¶
func (e *ErrorResponse) Error() string
type ListOptions ¶
type SwaggerService ¶
type SwaggerService struct {
// contains filtered or unexported fields
}
func (*SwaggerService) GetSwagger ¶
func (s *SwaggerService) GetSwagger() (*Swagger, *Response, error)
GetSwagger 获取 Swagger 配置 接口不需要凭证
Click to show internal directories.
Click to hide internal directories.