Versions in this module Expand all Collapse all v2 v2.0.1 Nov 9, 2023 v2.0.0 Jul 16, 2023 Changes in this version + func NewClient(mac *Mac, httpTransport http.RoundTripper, totalTimeout time.Duration) *http.Client + type Mac struct + func NewMac(accessKey, secretKey string) (mac *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 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)