Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
Auth is a function auth
func (*Auth) RoundTripper ¶
func (a *Auth) RoundTripper() (rt http.RoundTripper, err error)
RoundTripper wraps user provided round tripper for function with auth
func (*Auth) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
type CertAuth ¶
type CertAuth struct { Cert []byte Key []byte Renegotation tls.RenegotiationSupport }
CertAuth is a certificate auth for function
func (CertAuth) RoundTripper ¶
func (c CertAuth) RoundTripper() (http.RoundTripper, error)
RoundTripper returns round tripper for cert auth
func (*CertAuth) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
type KeyAuth ¶
type KeyAuth struct { Key string Next http.RoundTripper }
KeyAuth simple key based auth for function
func (KeyAuth) RoundTripper ¶
func (k KeyAuth) RoundTripper() (http.RoundTripper, error)
RoundTripper returns round tripper for key auth
func (*KeyAuth) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler
Click to show internal directories.
Click to hide internal directories.