func NewMacEx(mac *digest.Mac, t http.RoundTripper, bindRemoteIp string) Client { mt := digest.NewTransport(mac, t) client := &http.Client{Transport: mt} return Client{rpc.Client{client, bindRemoteIp}} }
func NewMac(mac *digest.Mac) Client { t := digest.NewTransport(mac, nil) client := &http.Client{Transport: t} return Client{rpc.Client{client, ""}} }