Versions in this module Expand all Collapse all v1 v1.0.557 Dec 13, 2022 Changes in this version + const GET + const HTTP + const HTTPS + const POST + const Path + const RootDomain + func CompleteCommonParams(request Request, region string, requestClient string) + func ConstructParams(req Request) (err error) + func GetServiceDomain(service string) (domain string) + func GetUrlQueriesEncoded(params map[string]string) string + func ParseErrorFromHTTPResponse(body []byte) (err error) + func ParseFromHttpResponse(hr *http.Response, response Response) (err error) + type BaseRequest struct + func (r *BaseRequest) GetAction() string + func (r *BaseRequest) GetBody() []byte + func (r *BaseRequest) GetBodyReader() io.Reader + func (r *BaseRequest) GetContentType() string + func (r *BaseRequest) GetContext() context.Context + func (r *BaseRequest) GetDomain() string + func (r *BaseRequest) GetHeader() map[string]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) GetSkipSign() bool + func (r *BaseRequest) GetUrl() string + func (r *BaseRequest) GetVersion() string + func (r *BaseRequest) Init() *BaseRequest + func (r *BaseRequest) SetBody(body []byte) + func (r *BaseRequest) SetContentType(contentType string) + func (r *BaseRequest) SetContext(ctx context.Context) + func (r *BaseRequest) SetDomain(domain string) + func (r *BaseRequest) SetHeader(header map[string]string) + func (r *BaseRequest) SetHttpMethod(method string) + func (r *BaseRequest) SetPath(path string) + func (r *BaseRequest) SetRootDomain(rootDomain string) + func (r *BaseRequest) SetScheme(scheme string) + func (r *BaseRequest) SetSkipSign(skip bool) + func (r *BaseRequest) WithApiInfo(service, version, action string) *BaseRequest + func (r *BaseRequest) WithContentType(contentType string) *BaseRequest + type BaseResponse struct + func (r *BaseResponse) ParseErrorFromHTTPResponse(body []byte) (err error) + type CommonRequest struct + func NewCommonRequest(service, version, action string) (request *CommonRequest) + func (cr *CommonRequest) GetHeader() map[string]string + func (cr *CommonRequest) GetOctetStreamBody() []byte + func (cr *CommonRequest) IsOctetStream() bool + func (cr *CommonRequest) MarshalJSON() ([]byte, error) + func (cr *CommonRequest) SetActionParameters(data interface{}) error + func (cr *CommonRequest) SetHeader(header map[string]string) + func (cr *CommonRequest) SetOctetStreamParameters(header map[string]string, body []byte) + type CommonResponse struct + func NewCommonResponse() (response *CommonResponse) + func (r *CommonResponse) GetBody() []byte + func (r *CommonResponse) UnmarshalJSON(data []byte) error + type DeprecatedAPIErrorResponse struct + Code int + CodeDesc string + Message string + type ErrorResponse struct + Response struct{ ... } + type Request interface + GetAction func() string + GetBody func() []byte + GetBodyReader func() io.Reader + GetContentType func() string + GetContext func() context.Context + GetDomain func() string + GetHeader func() map[string]string + GetHttpMethod func() string + GetParams func() map[string]string + GetPath func() string + GetRootDomain func() string + GetScheme func() string + GetService func() string + GetServiceDomain func(string) string + GetSkipSign func() bool + GetUrl func() string + GetVersion func() string + SetBody func([]byte) + SetContentType func(string) + SetContext func(context.Context) + SetDomain func(string) + SetHeader func(header map[string]string) + SetHttpMethod func(string) + SetPath func(string) + SetRootDomain func(string) + SetScheme func(string) + SetSkipSign func(skip bool) + type Response interface + ParseErrorFromHTTPResponse func(body []byte) error