Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogTransport ¶
Types ¶
type Client ¶
type Client interface {
Request(service string, action string, version string) RequestSender
}
type ClientOption ¶
func ClientOptionWithTimeout ¶
func ClientOptionWithTimeout(timeout time.Duration) *ClientOption
func ClientOptionWithTransports ¶
func ClientOptionWithTransports(transports ...transform.Transport) *ClientOption
func ComposeClientOptions ¶
func ComposeClientOptions(opts ...*ClientOption) *ClientOption
type ClientWithCredential ¶
type ClientWithCredential struct { *ClientOption signature.Credential }
func NewClientWithCredential ¶
func NewClientWithCredential(secretId, secretKey string, opts ...*ClientOption) *ClientWithCredential
func (*ClientWithCredential) Request ¶
func (c *ClientWithCredential) Request(service string, action string, version string) RequestSender
type LogTransport ¶
type LogTransport struct {
NextRoundTripper http.RoundTripper
}
type MaybeErrorResponse ¶
type MaybeErrorResponse interface {
GetError() error
}
type RequestSender ¶
type RequestSender interface {
Do(req interface{}, resp interface{}) error
}
type TencentCloudBaseResponse ¶
type TencentCloudBaseResponse struct { RequestId string `json:"RequestId"` Error *TencentCloudError `json:"Error,omitempty"` }
func (*TencentCloudBaseResponse) GetError ¶
func (resp *TencentCloudBaseResponse) GetError() error
type TencentCloudError ¶
func NewTencentCloudError ¶
func NewTencentCloudError(code string, msg string) *TencentCloudError
func (*TencentCloudError) Error ¶
func (e *TencentCloudError) Error() string
type TencentCloudResponse ¶
type TencentCloudResponse struct {
Response interface{} `json:"Response"`
}
Click to show internal directories.
Click to hide internal directories.