Documentation ¶
Index ¶
- Constants
- func InitParams(request AcsRequest) (err error)
- type AcsRequest
- type Boolean
- type CommonRequest
- func (request *CommonRequest) BuildQueries() string
- func (request *CommonRequest) BuildUrl() string
- func (request CommonRequest) GetAcceptFormat() string
- func (request CommonRequest) GetActionName() string
- func (request *CommonRequest) GetBodyReader() io.Reader
- func (request CommonRequest) GetContent() []byte
- func (request CommonRequest) GetContentType() (contentType string, contains bool)
- func (request CommonRequest) GetDomain() string
- func (request CommonRequest) GetFormParams() map[string]string
- func (request CommonRequest) GetHeaders() map[string]string
- func (request CommonRequest) GetLocationEndpointType() string
- func (request CommonRequest) GetLocationServiceCode() string
- func (request CommonRequest) GetMethod() string
- func (request CommonRequest) GetPort() string
- func (request CommonRequest) GetProduct() string
- func (request *CommonRequest) GetQueries() string
- func (request CommonRequest) GetQueryParams() map[string]string
- func (request CommonRequest) GetRegionId() string
- func (request CommonRequest) GetScheme() string
- func (request CommonRequest) GetStringToSign() string
- func (request *CommonRequest) GetStyle() string
- func (request *CommonRequest) GetUrl() string
- func (request CommonRequest) GetVersion() string
- func (request CommonRequest) SetContent(content []byte)
- func (request CommonRequest) SetContentType(contentType string)
- func (request CommonRequest) SetDomain(host string)
- func (request CommonRequest) SetScheme(scheme string)
- func (request CommonRequest) SetStringToSign(stringToSign string)
- func (request *CommonRequest) String() string
- func (request *CommonRequest) TransToAcsRequest()
- type Float
- type Integer
- type RoaRequest
- func (request *RoaRequest) BuildQueries() string
- func (request *RoaRequest) BuildUrl() string
- func (request RoaRequest) GetAcceptFormat() string
- func (request RoaRequest) GetActionName() string
- func (request *RoaRequest) GetBodyReader() io.Reader
- func (request RoaRequest) GetContent() []byte
- func (request RoaRequest) GetContentType() (contentType string, contains bool)
- func (request RoaRequest) GetDomain() string
- func (request RoaRequest) GetFormParams() map[string]string
- func (request RoaRequest) GetHeaders() map[string]string
- func (request RoaRequest) GetLocationEndpointType() string
- func (request RoaRequest) GetLocationServiceCode() string
- func (request RoaRequest) GetMethod() string
- func (request RoaRequest) GetPort() string
- func (request RoaRequest) GetProduct() string
- func (request *RoaRequest) GetQueries() string
- func (request RoaRequest) GetQueryParams() map[string]string
- func (request RoaRequest) GetRegionId() string
- func (request RoaRequest) GetScheme() string
- func (request RoaRequest) GetStringToSign() string
- func (*RoaRequest) GetStyle() string
- func (request *RoaRequest) GetUrl() string
- func (request RoaRequest) GetVersion() string
- func (request *RoaRequest) InitWithApiInfo(product, version, action, uriPattern, serviceCode, endpointType string)
- func (request RoaRequest) SetContent(content []byte)
- func (request RoaRequest) SetContentType(contentType string)
- func (request RoaRequest) SetDomain(host string)
- func (request RoaRequest) SetScheme(scheme string)
- func (request RoaRequest) SetStringToSign(stringToSign string)
- type RpcRequest
- func (request *RpcRequest) BuildQueries() string
- func (request *RpcRequest) BuildUrl() string
- func (request RpcRequest) GetAcceptFormat() string
- func (request *RpcRequest) GetActionName() string
- func (request *RpcRequest) GetBodyReader() io.Reader
- func (request RpcRequest) GetContent() []byte
- func (request RpcRequest) GetContentType() (contentType string, contains bool)
- func (request RpcRequest) GetDomain() string
- func (request RpcRequest) GetFormParams() map[string]string
- func (request RpcRequest) GetHeaders() map[string]string
- func (request RpcRequest) GetLocationEndpointType() string
- func (request RpcRequest) GetLocationServiceCode() string
- func (request RpcRequest) GetMethod() string
- func (request RpcRequest) GetPort() string
- func (request RpcRequest) GetProduct() string
- func (request *RpcRequest) GetQueries() string
- func (request RpcRequest) GetQueryParams() map[string]string
- func (request RpcRequest) GetRegionId() string
- func (request RpcRequest) GetScheme() string
- func (request RpcRequest) GetStringToSign() string
- func (*RpcRequest) GetStyle() string
- func (request *RpcRequest) GetUrl() string
- func (request *RpcRequest) GetVersion() string
- func (request *RpcRequest) InitWithApiInfo(product, version, action, serviceCode, endpointType string)
- func (request RpcRequest) SetContent(content []byte)
- func (request RpcRequest) SetContentType(contentType string)
- func (request RpcRequest) SetDomain(host string)
- func (request RpcRequest) SetScheme(scheme string)
- func (request RpcRequest) SetStringToSign(stringToSign string)
Constants ¶
const ( RPC = "RPC" ROA = "ROA" HTTP = "HTTP" HTTPS = "HTTPS" DefaultHttpPort = "80" GET = "GET" PUT = "PUT" POST = "POST" DELETE = "DELETE" HEAD = "HEAD" OPTIONS = "OPTIONS" Json = "application/json" Xml = "application/xml" Raw = "application/octet-stream" Form = "application/x-www-form-urlencoded" Header = "Header" Query = "Query" Body = "Body" Path = "Path" HeaderSeparator = "\n" )
const vars
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AcsRequest ¶
type AcsRequest interface { GetScheme() string GetMethod() string GetDomain() string GetPort() string GetRegionId() string GetUrl() string GetQueries() string GetHeaders() map[string]string GetQueryParams() map[string]string GetFormParams() map[string]string GetContent() []byte GetBodyReader() io.Reader GetStyle() string GetProduct() string GetVersion() string GetActionName() string GetAcceptFormat() string GetLocationServiceCode() string GetLocationEndpointType() string SetStringToSign(stringToSign string) GetStringToSign() string SetDomain(domain string) SetContent(content []byte) SetScheme(scheme string) BuildUrl() string BuildQueries() string // contains filtered or unexported methods }
AcsRequest interface
type Boolean ¶
type Boolean string
Boolean wrap string
type CommonRequest ¶
type CommonRequest struct { Version string ApiName string Product string // roa params PathPattern string PathParams map[string]string Ontology AcsRequest // contains filtered or unexported fields }
CommonRequest wrap base request
func NewCommonRequest ¶
func NewCommonRequest() (request *CommonRequest)
NewCommonRequest returns CommonRequest
func (*CommonRequest) BuildQueries ¶
func (request *CommonRequest) BuildQueries() string
BuildQueries returns queries
func (*CommonRequest) BuildUrl ¶
func (request *CommonRequest) BuildUrl() string
BuildUrl returns request url
func (CommonRequest) GetAcceptFormat ¶
func (request CommonRequest) GetAcceptFormat() string
GetAcceptFormat returns AcceptFormat
func (CommonRequest) GetActionName ¶
func (request CommonRequest) GetActionName() string
GetActionName returns actionName
func (*CommonRequest) GetBodyReader ¶
func (request *CommonRequest) GetBodyReader() io.Reader
GetBodyReader returns body
func (CommonRequest) GetContent ¶
func (request CommonRequest) GetContent() []byte
GetContent returns Content
func (CommonRequest) GetContentType ¶
GetContentType returns content type
func (CommonRequest) GetDomain ¶
func (request CommonRequest) GetDomain() string
GetDomain returns Domain
func (CommonRequest) GetFormParams ¶
GetFormParams returns FormParams
func (CommonRequest) GetHeaders ¶
GetHeaders returns headers
func (CommonRequest) GetLocationEndpointType ¶
func (request CommonRequest) GetLocationEndpointType() string
GetLocationEndpointType returns locationEndpointType
func (CommonRequest) GetLocationServiceCode ¶
func (request CommonRequest) GetLocationServiceCode() string
GetLocationServiceCode returns locationServiceCode
func (CommonRequest) GetMethod ¶
func (request CommonRequest) GetMethod() string
GetMethod returns Method
func (CommonRequest) GetProduct ¶
func (request CommonRequest) GetProduct() string
GetProduct returns product
func (*CommonRequest) GetQueries ¶
func (request *CommonRequest) GetQueries() string
GetQueries returns queries
func (CommonRequest) GetQueryParams ¶
GetQueryParams returns QueryParams
func (CommonRequest) GetRegionId ¶
func (request CommonRequest) GetRegionId() string
GetRegionId returns regionId
func (CommonRequest) GetScheme ¶
func (request CommonRequest) GetScheme() string
GetScheme returns scheme
func (CommonRequest) GetStringToSign ¶
func (request CommonRequest) GetStringToSign() string
GetStringToSign returns stringToSign
func (*CommonRequest) GetStyle ¶
func (request *CommonRequest) GetStyle() string
GetStyle returns style
func (CommonRequest) GetVersion ¶
func (request CommonRequest) GetVersion() string
GetVersion returns version
func (CommonRequest) SetContent ¶
func (request CommonRequest) SetContent(content []byte)
SetContent returns content
func (CommonRequest) SetContentType ¶
func (request CommonRequest) SetContentType(contentType string)
SetContentType sets content type
func (CommonRequest) SetDomain ¶
func (request CommonRequest) SetDomain(host string)
SetDomain sets host
func (CommonRequest) SetScheme ¶
func (request CommonRequest) SetScheme(scheme string)
SetScheme sets scheme
func (CommonRequest) SetStringToSign ¶
func (request CommonRequest) SetStringToSign(stringToSign string)
SetStringToSign sets stringToSign
func (*CommonRequest) String ¶
func (request *CommonRequest) String() string
String returns CommonRequest
func (*CommonRequest) TransToAcsRequest ¶
func (request *CommonRequest) TransToAcsRequest()
TransToAcsRequest convert common request
type Float ¶
type Float string
Float wrap string
type Integer ¶
type Integer string
Integer wrap string
func (Integer) GetValue64 ¶
GetValue64 returns int64 value
type RoaRequest ¶
RoaRequest wrap base request
func (*RoaRequest) BuildQueries ¶
func (request *RoaRequest) BuildQueries() string
BuildQueries for sign method, need not url encoded
func (RoaRequest) GetAcceptFormat ¶
func (request RoaRequest) GetAcceptFormat() string
GetAcceptFormat returns AcceptFormat
func (RoaRequest) GetActionName ¶
func (request RoaRequest) GetActionName() string
GetActionName returns actionName
func (*RoaRequest) GetBodyReader ¶
func (request *RoaRequest) GetBodyReader() io.Reader
GetBodyReader returns body
func (RoaRequest) GetContent ¶
func (request RoaRequest) GetContent() []byte
GetContent returns Content
func (RoaRequest) GetContentType ¶
GetContentType returns content type
func (RoaRequest) GetFormParams ¶
GetFormParams returns FormParams
func (RoaRequest) GetHeaders ¶
GetHeaders returns headers
func (RoaRequest) GetLocationEndpointType ¶
func (request RoaRequest) GetLocationEndpointType() string
GetLocationEndpointType returns locationEndpointType
func (RoaRequest) GetLocationServiceCode ¶
func (request RoaRequest) GetLocationServiceCode() string
GetLocationServiceCode returns locationServiceCode
func (RoaRequest) GetProduct ¶
func (request RoaRequest) GetProduct() string
GetProduct returns product
func (*RoaRequest) GetQueries ¶
func (request *RoaRequest) GetQueries() string
GetQueries returns queries
func (RoaRequest) GetQueryParams ¶
GetQueryParams returns QueryParams
func (RoaRequest) GetRegionId ¶
func (request RoaRequest) GetRegionId() string
GetRegionId returns regionId
func (RoaRequest) GetStringToSign ¶
func (request RoaRequest) GetStringToSign() string
GetStringToSign returns stringToSign
func (RoaRequest) GetVersion ¶
func (request RoaRequest) GetVersion() string
GetVersion returns version
func (*RoaRequest) InitWithApiInfo ¶
func (request *RoaRequest) InitWithApiInfo(product, version, action, uriPattern, serviceCode, endpointType string)
InitWithApiInfo creates api info
func (RoaRequest) SetContent ¶
func (request RoaRequest) SetContent(content []byte)
SetContent returns content
func (RoaRequest) SetContentType ¶
func (request RoaRequest) SetContentType(contentType string)
SetContentType sets content type
func (RoaRequest) SetScheme ¶
func (request RoaRequest) SetScheme(scheme string)
SetScheme sets scheme
func (RoaRequest) SetStringToSign ¶
func (request RoaRequest) SetStringToSign(stringToSign string)
SetStringToSign sets stringToSign
type RpcRequest ¶
type RpcRequest struct {
// contains filtered or unexported fields
}
RpcRequest wrap base request
func (*RpcRequest) BuildQueries ¶
func (request *RpcRequest) BuildQueries() string
BuildQueries builds queries
func (RpcRequest) GetAcceptFormat ¶
func (request RpcRequest) GetAcceptFormat() string
GetAcceptFormat returns AcceptFormat
func (*RpcRequest) GetActionName ¶
func (request *RpcRequest) GetActionName() string
GetActionName returns action name
func (*RpcRequest) GetBodyReader ¶
func (request *RpcRequest) GetBodyReader() io.Reader
GetBodyReader return body
func (RpcRequest) GetContent ¶
func (request RpcRequest) GetContent() []byte
GetContent returns Content
func (RpcRequest) GetContentType ¶
GetContentType returns content type
func (RpcRequest) GetFormParams ¶
GetFormParams returns FormParams
func (RpcRequest) GetHeaders ¶
GetHeaders returns headers
func (RpcRequest) GetLocationEndpointType ¶
func (request RpcRequest) GetLocationEndpointType() string
GetLocationEndpointType returns locationEndpointType
func (RpcRequest) GetLocationServiceCode ¶
func (request RpcRequest) GetLocationServiceCode() string
GetLocationServiceCode returns locationServiceCode
func (RpcRequest) GetProduct ¶
func (request RpcRequest) GetProduct() string
GetProduct returns product
func (*RpcRequest) GetQueries ¶
func (request *RpcRequest) GetQueries() string
GetQueries returns queries
func (RpcRequest) GetQueryParams ¶
GetQueryParams returns QueryParams
func (RpcRequest) GetRegionId ¶
func (request RpcRequest) GetRegionId() string
GetRegionId returns regionId
func (RpcRequest) GetStringToSign ¶
func (request RpcRequest) GetStringToSign() string
GetStringToSign returns stringToSign
func (*RpcRequest) GetVersion ¶
func (request *RpcRequest) GetVersion() string
GetVersion returns version
func (*RpcRequest) InitWithApiInfo ¶
func (request *RpcRequest) InitWithApiInfo(product, version, action, serviceCode, endpointType string)
InitWithApiInfo init api info
func (RpcRequest) SetContent ¶
func (request RpcRequest) SetContent(content []byte)
SetContent returns content
func (RpcRequest) SetContentType ¶
func (request RpcRequest) SetContentType(contentType string)
SetContentType sets content type
func (RpcRequest) SetScheme ¶
func (request RpcRequest) SetScheme(scheme string)
SetScheme sets scheme
func (RpcRequest) SetStringToSign ¶
func (request RpcRequest) SetStringToSign(stringToSign string)
SetStringToSign sets stringToSign