Documentation ¶
Index ¶
- Constants
- func InitParams(request AcsRequest) (err error)
- type AcsRequest
- type Boolean
- type CommonRequest
- func (request CommonRequest) AppendUserAgent(key, value string)
- 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) GetConnectTimeout() time.Duration
- 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) GetHTTPSInsecure() *bool
- 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) GetQueryParams() map[string]string
- func (request CommonRequest) GetReadTimeout() time.Duration
- func (request CommonRequest) GetRegionId() string
- func (request CommonRequest) GetScheme() string
- func (request CommonRequest) GetStringToSign() string
- func (request *CommonRequest) GetStyle() string
- func (request CommonRequest) GetTracerSpan() opentracing.Span
- func (request CommonRequest) GetUserAgent() map[string]string
- func (request CommonRequest) GetVersion() string
- func (request CommonRequest) SetConnectTimeout(connectTimeout time.Duration)
- func (request CommonRequest) SetContent(content []byte)
- func (request CommonRequest) SetContentType(contentType string)
- func (request CommonRequest) SetDomain(host string)
- func (request CommonRequest) SetHTTPSInsecure(isInsecure bool)
- func (request CommonRequest) SetReadTimeout(readTimeout time.Duration)
- func (request CommonRequest) SetScheme(scheme string)
- func (request CommonRequest) SetStringToSign(stringToSign string)
- func (request CommonRequest) SetTracerSpan(span opentracing.Span)
- func (request CommonRequest) SetVersion(version string)
- func (request *CommonRequest) String() string
- func (request *CommonRequest) TransToAcsRequest()
- type Float
- type Integer
- type RoaRequest
- func (request RoaRequest) AppendUserAgent(key, value string)
- 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) GetConnectTimeout() time.Duration
- 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) GetHTTPSInsecure() *bool
- 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) GetQueryParams() map[string]string
- func (request RoaRequest) GetReadTimeout() time.Duration
- func (request RoaRequest) GetRegionId() string
- func (request RoaRequest) GetScheme() string
- func (request RoaRequest) GetStringToSign() string
- func (*RoaRequest) GetStyle() string
- func (request RoaRequest) GetTracerSpan() opentracing.Span
- func (request RoaRequest) GetUserAgent() map[string]string
- func (request RoaRequest) GetVersion() string
- func (request *RoaRequest) InitWithApiInfo(product, version, action, uriPattern, serviceCode, endpointType string)
- func (request RoaRequest) SetConnectTimeout(connectTimeout time.Duration)
- func (request RoaRequest) SetContent(content []byte)
- func (request RoaRequest) SetContentType(contentType string)
- func (request RoaRequest) SetDomain(host string)
- func (request RoaRequest) SetHTTPSInsecure(isInsecure bool)
- func (request RoaRequest) SetReadTimeout(readTimeout time.Duration)
- func (request RoaRequest) SetScheme(scheme string)
- func (request RoaRequest) SetStringToSign(stringToSign string)
- func (request RoaRequest) SetTracerSpan(span opentracing.Span)
- func (request RoaRequest) SetVersion(version string)
- type RpcRequest
- func (request RpcRequest) AppendUserAgent(key, value string)
- 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) GetConnectTimeout() time.Duration
- 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) GetHTTPSInsecure() *bool
- 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) GetQueryParams() map[string]string
- func (request RpcRequest) GetReadTimeout() time.Duration
- func (request RpcRequest) GetRegionId() string
- func (request RpcRequest) GetScheme() string
- func (request RpcRequest) GetStringToSign() string
- func (*RpcRequest) GetStyle() string
- func (request RpcRequest) GetTracerSpan() opentracing.Span
- func (request RpcRequest) GetUserAgent() map[string]string
- func (request *RpcRequest) GetVersion() string
- func (request *RpcRequest) InitWithApiInfo(product, version, action, serviceCode, endpointType string)
- func (request RpcRequest) SetConnectTimeout(connectTimeout time.Duration)
- func (request RpcRequest) SetContent(content []byte)
- func (request RpcRequest) SetContentType(contentType string)
- func (request RpcRequest) SetDomain(host string)
- func (request RpcRequest) SetHTTPSInsecure(isInsecure bool)
- func (request RpcRequest) SetReadTimeout(readTimeout time.Duration)
- func (request RpcRequest) SetScheme(scheme string)
- func (request RpcRequest) SetStringToSign(stringToSign string)
- func (request RpcRequest) SetTracerSpan(span opentracing.Span)
- func (request RpcRequest) SetVersion(version string)
Constants ¶
View Source
const ( RPC = "RPC" ROA = "ROA" HTTP = "HTTP" HTTPS = "HTTPS" DefaultHttpPort = "80" GET = "GET" PUT = "PUT" POST = "POST" DELETE = "DELETE" PATCH = "PATCH" 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" )
Variables ¶
This section is empty.
Functions ¶
func InitParams ¶
func InitParams(request AcsRequest) (err error)
Types ¶
type AcsRequest ¶
type AcsRequest interface { GetScheme() string GetMethod() string GetDomain() string GetPort() string GetRegionId() string GetHeaders() map[string]string GetQueryParams() map[string]string GetFormParams() map[string]string GetContent() []byte GetBodyReader() io.Reader GetStyle() string GetProduct() string GetVersion() string SetVersion(version string) GetActionName() string GetAcceptFormat() string GetLocationServiceCode() string GetLocationEndpointType() string GetReadTimeout() time.Duration GetConnectTimeout() time.Duration SetReadTimeout(readTimeout time.Duration) SetConnectTimeout(connectTimeout time.Duration) SetHTTPSInsecure(isInsecure bool) GetHTTPSInsecure() *bool GetUserAgent() map[string]string SetStringToSign(stringToSign string) GetStringToSign() string SetDomain(domain string) SetContent(content []byte) SetScheme(scheme string) BuildUrl() string BuildQueries() string SetTracerSpan(span opentracing.Span) GetTracerSpan() opentracing.Span // contains filtered or unexported methods }
interface
type CommonRequest ¶
type CommonRequest struct { Version string ApiName string Product string ServiceCode string EndpointType string // roa params PathPattern string PathParams map[string]string Ontology AcsRequest // contains filtered or unexported fields }
func NewCommonRequest ¶
func NewCommonRequest() (request *CommonRequest)
func (CommonRequest) AppendUserAgent ¶
func (request CommonRequest) AppendUserAgent(key, value string)
func (*CommonRequest) BuildQueries ¶
func (request *CommonRequest) BuildQueries() string
func (*CommonRequest) BuildUrl ¶
func (request *CommonRequest) BuildUrl() string
func (CommonRequest) GetAcceptFormat ¶
func (request CommonRequest) GetAcceptFormat() string
func (CommonRequest) GetActionName ¶
func (request CommonRequest) GetActionName() string
func (*CommonRequest) GetBodyReader ¶
func (request *CommonRequest) GetBodyReader() io.Reader
func (CommonRequest) GetConnectTimeout ¶
func (CommonRequest) GetContent ¶
func (request CommonRequest) GetContent() []byte
func (CommonRequest) GetContentType ¶
func (CommonRequest) GetFormParams ¶
func (CommonRequest) GetHTTPSInsecure ¶
func (request CommonRequest) GetHTTPSInsecure() *bool
func (CommonRequest) GetHeaders ¶
func (CommonRequest) GetLocationEndpointType ¶
func (request CommonRequest) GetLocationEndpointType() string
func (CommonRequest) GetLocationServiceCode ¶
func (request CommonRequest) GetLocationServiceCode() string
func (CommonRequest) GetProduct ¶
func (request CommonRequest) GetProduct() string
func (CommonRequest) GetQueryParams ¶
func (CommonRequest) GetReadTimeout ¶
func (CommonRequest) GetRegionId ¶
func (request CommonRequest) GetRegionId() string
func (CommonRequest) GetStringToSign ¶
func (request CommonRequest) GetStringToSign() string
func (*CommonRequest) GetStyle ¶
func (request *CommonRequest) GetStyle() string
func (CommonRequest) GetTracerSpan ¶ added in v1.62.0
func (request CommonRequest) GetTracerSpan() opentracing.Span
func (CommonRequest) GetUserAgent ¶
func (CommonRequest) GetVersion ¶
func (request CommonRequest) GetVersion() string
func (CommonRequest) SetConnectTimeout ¶
func (CommonRequest) SetContent ¶
func (request CommonRequest) SetContent(content []byte)
func (CommonRequest) SetContentType ¶
func (request CommonRequest) SetContentType(contentType string)
func (CommonRequest) SetHTTPSInsecure ¶
func (request CommonRequest) SetHTTPSInsecure(isInsecure bool)
func (CommonRequest) SetReadTimeout ¶
func (CommonRequest) SetStringToSign ¶
func (request CommonRequest) SetStringToSign(stringToSign string)
func (CommonRequest) SetTracerSpan ¶ added in v1.62.0
func (request CommonRequest) SetTracerSpan(span opentracing.Span)
func (CommonRequest) SetVersion ¶
func (request CommonRequest) SetVersion(version string)
func (*CommonRequest) String ¶
func (request *CommonRequest) String() string
func (*CommonRequest) TransToAcsRequest ¶
func (request *CommonRequest) TransToAcsRequest()
type Integer ¶
type Integer string
func NewInteger ¶
func NewInteger64 ¶
func (Integer) GetValue64 ¶
type RoaRequest ¶
func (RoaRequest) AppendUserAgent ¶
func (request RoaRequest) AppendUserAgent(key, value string)
func (*RoaRequest) BuildQueries ¶
func (request *RoaRequest) BuildQueries() string
for sign method, need not url encoded
func (*RoaRequest) BuildUrl ¶
func (request *RoaRequest) BuildUrl() string
func (RoaRequest) GetAcceptFormat ¶
func (request RoaRequest) GetAcceptFormat() string
func (RoaRequest) GetActionName ¶
func (request RoaRequest) GetActionName() string
func (*RoaRequest) GetBodyReader ¶
func (request *RoaRequest) GetBodyReader() io.Reader
func (RoaRequest) GetConnectTimeout ¶
func (RoaRequest) GetContent ¶
func (request RoaRequest) GetContent() []byte
func (RoaRequest) GetContentType ¶
func (RoaRequest) GetFormParams ¶
func (RoaRequest) GetHTTPSInsecure ¶
func (request RoaRequest) GetHTTPSInsecure() *bool
func (RoaRequest) GetHeaders ¶
func (RoaRequest) GetLocationEndpointType ¶
func (request RoaRequest) GetLocationEndpointType() string
func (RoaRequest) GetLocationServiceCode ¶
func (request RoaRequest) GetLocationServiceCode() string
func (RoaRequest) GetProduct ¶
func (request RoaRequest) GetProduct() string
func (RoaRequest) GetQueryParams ¶
func (RoaRequest) GetReadTimeout ¶
func (RoaRequest) GetRegionId ¶
func (request RoaRequest) GetRegionId() string
func (RoaRequest) GetStringToSign ¶
func (request RoaRequest) GetStringToSign() string
func (*RoaRequest) GetStyle ¶
func (*RoaRequest) GetStyle() string
func (RoaRequest) GetTracerSpan ¶ added in v1.62.0
func (request RoaRequest) GetTracerSpan() opentracing.Span
func (RoaRequest) GetUserAgent ¶
func (RoaRequest) GetVersion ¶
func (request RoaRequest) GetVersion() string
func (*RoaRequest) InitWithApiInfo ¶
func (request *RoaRequest) InitWithApiInfo(product, version, action, uriPattern, serviceCode, endpointType string)
func (RoaRequest) SetConnectTimeout ¶
func (RoaRequest) SetContent ¶
func (request RoaRequest) SetContent(content []byte)
func (RoaRequest) SetContentType ¶
func (request RoaRequest) SetContentType(contentType string)
func (RoaRequest) SetHTTPSInsecure ¶
func (request RoaRequest) SetHTTPSInsecure(isInsecure bool)
func (RoaRequest) SetReadTimeout ¶
func (RoaRequest) SetStringToSign ¶
func (request RoaRequest) SetStringToSign(stringToSign string)
func (RoaRequest) SetTracerSpan ¶ added in v1.62.0
func (request RoaRequest) SetTracerSpan(span opentracing.Span)
func (RoaRequest) SetVersion ¶
func (request RoaRequest) SetVersion(version string)
type RpcRequest ¶
type RpcRequest struct {
// contains filtered or unexported fields
}
func (RpcRequest) AppendUserAgent ¶
func (request RpcRequest) AppendUserAgent(key, value string)
func (*RpcRequest) BuildQueries ¶
func (request *RpcRequest) BuildQueries() string
func (*RpcRequest) BuildUrl ¶
func (request *RpcRequest) BuildUrl() string
func (RpcRequest) GetAcceptFormat ¶
func (request RpcRequest) GetAcceptFormat() string
func (*RpcRequest) GetActionName ¶
func (request *RpcRequest) GetActionName() string
func (*RpcRequest) GetBodyReader ¶
func (request *RpcRequest) GetBodyReader() io.Reader
func (RpcRequest) GetConnectTimeout ¶
func (RpcRequest) GetContent ¶
func (request RpcRequest) GetContent() []byte
func (RpcRequest) GetContentType ¶
func (RpcRequest) GetFormParams ¶
func (RpcRequest) GetHTTPSInsecure ¶
func (request RpcRequest) GetHTTPSInsecure() *bool
func (RpcRequest) GetHeaders ¶
func (RpcRequest) GetLocationEndpointType ¶
func (request RpcRequest) GetLocationEndpointType() string
func (RpcRequest) GetLocationServiceCode ¶
func (request RpcRequest) GetLocationServiceCode() string
func (RpcRequest) GetProduct ¶
func (request RpcRequest) GetProduct() string
func (RpcRequest) GetQueryParams ¶
func (RpcRequest) GetReadTimeout ¶
func (RpcRequest) GetRegionId ¶
func (request RpcRequest) GetRegionId() string
func (RpcRequest) GetStringToSign ¶
func (request RpcRequest) GetStringToSign() string
func (*RpcRequest) GetStyle ¶
func (*RpcRequest) GetStyle() string
func (RpcRequest) GetTracerSpan ¶ added in v1.62.0
func (request RpcRequest) GetTracerSpan() opentracing.Span
func (RpcRequest) GetUserAgent ¶
func (*RpcRequest) GetVersion ¶
func (request *RpcRequest) GetVersion() string
func (*RpcRequest) InitWithApiInfo ¶
func (request *RpcRequest) InitWithApiInfo(product, version, action, serviceCode, endpointType string)
func (RpcRequest) SetConnectTimeout ¶
func (RpcRequest) SetContent ¶
func (request RpcRequest) SetContent(content []byte)
func (RpcRequest) SetContentType ¶
func (request RpcRequest) SetContentType(contentType string)
func (RpcRequest) SetHTTPSInsecure ¶
func (request RpcRequest) SetHTTPSInsecure(isInsecure bool)
func (RpcRequest) SetReadTimeout ¶
func (RpcRequest) SetStringToSign ¶
func (request RpcRequest) SetStringToSign(stringToSign string)
func (RpcRequest) SetTracerSpan ¶ added in v1.62.0
func (request RpcRequest) SetTracerSpan(span opentracing.Span)
func (RpcRequest) SetVersion ¶
func (request RpcRequest) SetVersion(version string)
Click to show internal directories.
Click to hide internal directories.