Versions in this module Expand all Collapse all v0 v0.2.0 Jul 4, 2016 v0.1.1 Jun 25, 2016 Changes in this version + const ApiCDNHost + const ApiCDNVersion + const DefaultSignatureMethod + const DefaultSignatureVersion + const ECSRequestMethod + const JSONResponseFormat + const Version + const XMLResponseFormat + type CDNRequest struct + AccessKeyId string + Action string + Args url.Values + Format string + Host string + Method string + Signature string + SignatureMethod string + SignatureNonce string + SignatureVersion string + Timestamp util.ISO6801Time + Url string + Version string + func NewCDNRequest(action string) *CDNRequest + func (Cdn *CDNRequest) DeadLine() time.Duration + func (Cdn *CDNRequest) DelArgs(key string) + func (Cdn *CDNRequest) HttpRequestInstance() (httpReq *http.Request, err error) + func (Cdn *CDNRequest) ResponseFormat() string + func (Cdn *CDNRequest) SetArgs(key, value string) + func (Cdn *CDNRequest) Sign(cert *Credentials) + func (Cdn *CDNRequest) String() string + func (Cdn *CDNRequest) StructToArgs() + func (l *CDNRequest) Clone() interface{} + type Client struct + ConnectTimeout time.Duration + func NewClient(cert *Credentials) (c *Client) + func NewClientTimeout(cert *Credentials, connectTimeout time.Duration) (c *Client) + func (c *Client) Init() *Client + func (c *Client) Query(req Request, resp interface{}) error + func (c *Client) SetDebug(debug bool) + type Credentials struct + AccessKeyId string + AccessKeySecret string + func NewCredentials(accessKeyId, accessKeySecret string) *Credentials + type ErrorResponse struct + Code string + HostId string + Message string + RequestId string + StatusCode int + func (e *ErrorResponse) Error() string + type Request interface + Clone func() interface{} + HttpRequestInstance func() (*http.Request, error) + ResponseFormat func() string + Sign func(*Credentials) + String func() string + type Response struct + RequestId string + type Unmarshal func(data []byte, v interface{}) error