digest

package
v0.0.0-...-b42fd65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 6, 2014 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(mac *Mac, transport http.RoundTripper) *http.Client

func Sign

func Sign(mac *Mac, data []byte) string

func SignWithData

func SignWithData(mac *Mac, data []byte) string

Types

type Mac

type Mac struct {
	AccessKey string
	SecretKey []byte
}

func (*Mac) Sign

func (mac *Mac) Sign(data []byte) (token string)

func (*Mac) SignRequest

func (mac *Mac) SignRequest(req *http.Request, incbody bool) (token string, err error)

func (*Mac) SignWithData

func (mac *Mac) SignWithData(b []byte) (token string)

type Transport

type Transport struct {
	// contains filtered or unexported fields
}

func NewTransport

func NewTransport(mac *Mac, transport http.RoundTripper) *Transport

func (*Transport) RoundTrip

func (t *Transport) RoundTrip(req *http.Request) (resp *http.Response, err error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL