Versions in this module Expand all Collapse all v1 v1.0.6 Jun 25, 2021 Changes in this version + func NewClient(mac *Mac, transport http.RoundTripper) *http.Client + func Sign(mac *Mac, data []byte) string + func SignWithData(mac *Mac, data []byte) string + type Mac struct + AccessKey string + SecretKey []byte + func NewMac(accessKey, secretKey string) (mac *Mac) + 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 struct + Transport http.RoundTripper + func NewTransport(mac *Mac, transport http.RoundTripper) *Transport + func (t *Transport) NestedObject() interface{} + func (t *Transport) RoundTrip(req *http.Request) (resp *http.Response, err error)