Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewClient ¶ added in v0.39.0
func NewClient(o ClientOptions) *http.Client
NewClient returns a client that sets the beekeeper User-Agent. Share one client across nodes; its transport pools connections per host.
Types ¶
type ClientOptions ¶ added in v0.39.0
type ClientOptions struct {
InsecureSkipVerify bool
}
ClientOptions configures NewClient.
type HeaderRoundTripper ¶
type HeaderRoundTripper struct {
Next http.RoundTripper
}
HeaderRoundTripper sets the beekeeper User-Agent header. A nil Next means http.DefaultTransport.
func (*HeaderRoundTripper) CloseIdleConnections ¶ added in v0.39.0
func (hrt *HeaderRoundTripper) CloseIdleConnections()
CloseIdleConnections lets http.Client.CloseIdleConnections reach Next.