Documentation ¶
Index ¶
- Constants
- func HMAC_Sha256(key []byte, msg []byte) []byte
- type App
- type BaseResponse
- type ContentType
- type Error
- type Request
- func (r *Request) CreatePreset(a *App, signedHeaders []string) *fetcher.Preset
- func (r *Request) CreateSignData(signed_headers []string) *SignData
- func (r *Request) MustSetPOSTJSON(url *url.URL, body interface{})
- func (r *Request) SetGET(url *url.URL)
- func (r *Request) SetPOSTFormdata(url *url.URL, body []byte)
- type SignData
Constants ¶
View Source
const ( ContentTypeURLEncoded = ContentType("application/x-www-form-urlencoded") ContentTypeJSON = ContentType("application/json; charset=utf-8") ContentTypeFormData = ContentType("multipart/form-data") )
Variables ¶
This section is empty.
Functions ¶
func HMAC_Sha256 ¶
Types ¶
type BaseResponse ¶
func (*BaseResponse) CodeError ¶
func (r *BaseResponse) CodeError() error
func (*BaseResponse) Error ¶
func (r *BaseResponse) Error() string
type ContentType ¶
type ContentType string
type Request ¶
type Request struct { Action string Region string Version string URL *url.URL Method string ContentType ContentType Header http.Header Body []byte Token string Timestamp int64 Service string }
func NewRequest ¶
func NewRequest() *Request
func (*Request) CreatePreset ¶
func (*Request) CreateSignData ¶
func (*Request) MustSetPOSTJSON ¶
Click to show internal directories.
Click to hide internal directories.