Example #1
0
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}}
}
Example #2
0
func NewMac(mac *digest.Mac) Client {
	t := digest.NewTransport(mac, nil)
	client := &http.Client{Transport: t}
	return Client{rpc.Client{client, ""}}
}