Documentation ¶
Overview ¶
Package request contains everything for build a http request and unpack a http response.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StringToTime ¶
StringToTime transforms given string to time.
func StringToUnixInt ¶
StringToUnixInt transforms given string to unix time int.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder is the request builder for QingCloud service.
type Request ¶
type Request struct { Operation *data.Operation Input interface{} Output interface{} HTTPRequest *http.Request HTTPResponse *http.Response }
A Request can build, sign, send and unpack API request.
type Signer ¶
Signer is the http request signer for IaaS service.
func (*Signer) BuildSignature ¶
BuildSignature calculates the signature string.
func (*Signer) BuildStringToSign ¶
BuildStringToSign build the string to sign.
Click to show internal directories.
Click to hide internal directories.