Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func CreateHTTPTransport ¶
CreateHTTPTransport creates an *http.Transport for use in the agent
Types ¶
type ResetClient ¶
type ResetClient struct {
// contains filtered or unexported fields
}
ResetClient wraps (http.Client).Do and resets the underlying connections at the configured interval
func NewResetClient ¶
func NewResetClient(resetInterval time.Duration, httpClientFactory func() *http.Client) *ResetClient
NewResetClient returns an initialized Client resetting connections at the passed resetInterval ("0" means that no reset is performed). The underlying http.Client used will be created using the passed http client factory.
Click to show internal directories.
Click to hide internal directories.