 Documentation
      ¶
      Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
- func CompleteCommonParams(request Request, region string)
- func ConstructParams(req Request) (err error)
- func GetServiceDomain(service string) (domain string)
- func GetUrlQueriesEncoded(params map[string]string) string
- func ParseFromHttpResponse(hr *http.Response, response Response) (err error)
- type BaseRequest
- func (r *BaseRequest) GetAction() string
- func (r *BaseRequest) GetBodyReader() io.Reader
- func (r *BaseRequest) GetDomain() string
- func (r *BaseRequest) GetHttpMethod() string
- func (r *BaseRequest) GetParams() map[string]string
- func (r *BaseRequest) GetPath() string
- func (r *BaseRequest) GetRootDomain() string
- func (r *BaseRequest) GetScheme() string
- func (r *BaseRequest) GetService() string
- func (r *BaseRequest) GetServiceDomain(service string) (domain string)
- func (r *BaseRequest) GetUrl() string
- func (r *BaseRequest) GetVersion() string
- func (r *BaseRequest) Init() *BaseRequest
- func (r *BaseRequest) SetDomain(domain string)
- func (r *BaseRequest) SetHttpMethod(method string)
- func (r *BaseRequest) SetRootDomain(rootDomain string)
- func (r *BaseRequest) SetScheme(scheme string)
- func (r *BaseRequest) WithApiInfo(service, version, action string) *BaseRequest
 
- type BaseResponse
- type DeprecatedAPIErrorResponse
- type ErrorResponse
- type Request
- type Response
Constants ¶
      View Source
      
  
const ( POST = "POST" GET = "GET" HTTP = "http" HTTPS = "https" RootDomain = "tencentcloudapi.com" Path = "/" )
Variables ¶
This section is empty.
Functions ¶
func CompleteCommonParams ¶
func ConstructParams ¶
func GetServiceDomain ¶
Deprecated, use request.GetServiceDomain instead
func GetUrlQueriesEncoded ¶
Types ¶
type BaseRequest ¶
type BaseRequest struct {
	// contains filtered or unexported fields
}
    func (*BaseRequest) GetAction ¶
func (r *BaseRequest) GetAction() string
func (*BaseRequest) GetBodyReader ¶
func (r *BaseRequest) GetBodyReader() io.Reader
func (*BaseRequest) GetDomain ¶
func (r *BaseRequest) GetDomain() string
func (*BaseRequest) GetHttpMethod ¶
func (r *BaseRequest) GetHttpMethod() string
func (*BaseRequest) GetParams ¶
func (r *BaseRequest) GetParams() map[string]string
func (*BaseRequest) GetPath ¶
func (r *BaseRequest) GetPath() string
func (*BaseRequest) GetRootDomain ¶
func (r *BaseRequest) GetRootDomain() string
func (*BaseRequest) GetScheme ¶
func (r *BaseRequest) GetScheme() string
func (*BaseRequest) GetService ¶
func (r *BaseRequest) GetService() string
func (*BaseRequest) GetServiceDomain ¶
func (r *BaseRequest) GetServiceDomain(service string) (domain string)
func (*BaseRequest) GetUrl ¶
func (r *BaseRequest) GetUrl() string
func (*BaseRequest) GetVersion ¶
func (r *BaseRequest) GetVersion() string
func (*BaseRequest) Init ¶
func (r *BaseRequest) Init() *BaseRequest
func (*BaseRequest) SetDomain ¶
func (r *BaseRequest) SetDomain(domain string)
func (*BaseRequest) SetHttpMethod ¶
func (r *BaseRequest) SetHttpMethod(method string)
func (*BaseRequest) SetRootDomain ¶
func (r *BaseRequest) SetRootDomain(rootDomain string)
func (*BaseRequest) SetScheme ¶
func (r *BaseRequest) SetScheme(scheme string)
func (*BaseRequest) WithApiInfo ¶
func (r *BaseRequest) WithApiInfo(service, version, action string) *BaseRequest
type BaseResponse ¶
type BaseResponse struct {
}
    func (*BaseResponse) ParseErrorFromHTTPResponse ¶
func (r *BaseResponse) ParseErrorFromHTTPResponse(body []byte) (err error)
type ErrorResponse ¶
type Request ¶
type Request interface {
	GetAction() string
	GetBodyReader() io.Reader
	GetScheme() string
	GetRootDomain() string
	GetServiceDomain(string) string
	GetDomain() string
	GetHttpMethod() string
	GetParams() map[string]string
	GetPath() string
	GetService() string
	GetUrl() string
	GetVersion() string
	SetScheme(string)
	SetRootDomain(string)
	SetDomain(string)
	SetHttpMethod(string)
}
     Click to show internal directories. 
   Click to hide internal directories.