Documentation ¶
Index ¶
- func NewAliyunDriveError(code, message string) error
- type AliyunDriveError
- type BaseRequest
- func (receiver *BaseRequest) GetHeaders() map[string]string
- func (receiver *BaseRequest) GetHttpMethod() Method
- func (receiver *BaseRequest) GetQueryParams() map[string]string
- func (receiver *BaseRequest) GetUrl() string
- func (receiver *BaseRequest) Init(endpoint string) *BaseRequest
- func (receiver *BaseRequest) SetHttpMethod(method Method) Request
- func (receiver *BaseRequest) SetUrl(url string) Request
- type BaseResponse
- type Client
- type Method
- type Request
- type Response
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAliyunDriveError ¶
Types ¶
type AliyunDriveError ¶
func (*AliyunDriveError) Error ¶
func (p *AliyunDriveError) Error() string
type BaseRequest ¶
type BaseRequest struct {
// contains filtered or unexported fields
}
func (*BaseRequest) GetHeaders ¶
func (receiver *BaseRequest) GetHeaders() map[string]string
func (*BaseRequest) GetHttpMethod ¶
func (receiver *BaseRequest) GetHttpMethod() Method
func (*BaseRequest) GetQueryParams ¶
func (receiver *BaseRequest) GetQueryParams() map[string]string
func (*BaseRequest) GetUrl ¶
func (receiver *BaseRequest) GetUrl() string
func (*BaseRequest) Init ¶
func (receiver *BaseRequest) Init(endpoint string) *BaseRequest
func (*BaseRequest) SetHttpMethod ¶
func (receiver *BaseRequest) SetHttpMethod(method Method) Request
func (*BaseRequest) SetUrl ¶
func (receiver *BaseRequest) SetUrl(url string) Request
type BaseResponse ¶
func (*BaseResponse) ParseErrorFromHTTPResponse ¶
func (b *BaseResponse) ParseErrorFromHTTPResponse(body []byte) error
Click to show internal directories.
Click to hide internal directories.