Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RoundTripper ¶ added in v1.0.10
func RoundTripper(upstream http.RoundTripper) http.RoundTripper
func Transport ¶ added in v1.0.10
func Transport(opts TransportOptions) (http.RoundTripper, error)
Transport returns a new http.RoundTripper with default settings applied.
Types ¶
type Credential ¶
type StorageVault ¶
type StorageVault interface { // HeadObject a boolean value whether object name existing in storage. HeadObject(key string) (bool, string, error) // PutObject stores the data to the storage backend. PutObject(key string, data []byte) error // GetObject downloads the object by name in storage. GetObject(key string) ([]byte, error) // SetCredential sets a new credential with backend credential not constant. RefreshCredential(credential Credential) error // ID return id of storage vault ID() (string, string) // Type Type() Type }
storageVault ...
type TransportOptions ¶ added in v1.0.10
type TransportOptions struct { Connect time.Duration ConnKeepAlive time.Duration ExpectContinue time.Duration IdleConn time.Duration MaxAllIdleConns int MaxHostIdleConns int ResponseHeader time.Duration TLSHandshake time.Duration }
TransportOptions collects various options which can be set for an HTTP based transport.
Click to show internal directories.
Click to hide internal directories.