Versions in this module Expand all Collapse all v1 v1.1.0 Dec 14, 2016 v1.0.0 Aug 2, 2016 Changes in this version + func ContextRequestID(ctx context.Context) string + func ContextWithRequestID(ctx context.Context) (context.Context, string) + func HandleResponse(c *Client, resp *http.Response, pretty bool) + func WSRead(ws *websocket.Conn) + func WSWrite(ws *websocket.Conn) + type APIKeySigner struct + Format string + KeyName string + KeyValue string + SignQuery bool + func (s *APIKeySigner) Sign(req *http.Request) error + type BasicSigner struct + Password string + Username string + func (s *BasicSigner) Sign(req *http.Request) error + type Client struct + Dump bool + Host string + Scheme string + UserAgent string + func New(c Doer) *Client + func (c *Client) Do(ctx context.Context, req *http.Request) (*http.Response, error) + type Doer interface + Do func(context.Context, *http.Request) (*http.Response, error) + func HTTPClientDoer(hc *http.Client) Doer + type JWTSigner struct + TokenSource TokenSource + func (s *JWTSigner) Sign(req *http.Request) error + type OAuth2Signer struct + TokenSource TokenSource + func (s *OAuth2Signer) Sign(req *http.Request) error + type Signer interface + Sign func(*http.Request) error + type StaticToken struct + Type string + Value string + func (t *StaticToken) SetAuthHeader(r *http.Request) + func (t *StaticToken) Valid() bool + type StaticTokenSource struct + StaticToken *StaticToken + func (s *StaticTokenSource) Token() (Token, error) + type Token interface + SetAuthHeader func(r *http.Request) + Valid func() bool + type TokenSource interface + Token func() (Token, error)