Documentation ¶
Index ¶
- func NewClient(mac *Mac, transport http.RoundTripper) *http.Client
- type Mac
- func (mac *Mac) GetAccessKey() string
- func (mac *Mac) GetSecretKey() string
- func (mac *Mac) Sign(data []byte) (token string)
- func (mac *Mac) SignRequest(req *http.Request, incbody bool) (token string, err error)
- func (mac *Mac) SignWithData(b []byte) (token string)
- func (mac *Mac) VerifyCallback(req *http.Request) (bool, error)
- type Transport
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Mac ¶
type Mac struct {
// contains filtered or unexported fields
}
func (*Mac) SignRequest ¶
func (*Mac) SignWithData ¶
type Transport ¶
type Transport struct { Transport http.RoundTripper // contains filtered or unexported fields }
func NewTransport ¶
func NewTransport(mac *Mac, transport http.RoundTripper) *Transport
func (*Transport) NestedObject ¶
func (t *Transport) NestedObject() interface{}
Click to show internal directories.
Click to hide internal directories.