Versions in this module Expand all Collapse all v1 v1.0.1 Jun 13, 2019 v1.0.0 Aug 12, 2018 Changes in this version + const Version + var DefaultHeartbeatDuration = 30 * time.Second + var ErrNoConn = errors.New("no connection") + var UserAgent = "balancers/" + Version + " (" + runtime.GOOS + "-" + runtime.GOARCH + ")" + func NewClient(b Balancer) *http.Client + type Balancer interface + Connections func() []Connection + Get func() (Connection, error) + type Connection interface + IsBroken func() bool + URL func() *url.URL + type HttpConnection struct + func NewHttpConnection(url *url.URL) *HttpConnection + func (c *HttpConnection) Close() error + func (c *HttpConnection) HeartbeatDuration(d time.Duration) *HttpConnection + func (c *HttpConnection) IsBroken() bool + func (c *HttpConnection) URL() *url.URL + type Transport struct + Base http.RoundTripper + func (t *Transport) CancelRequest(r *http.Request) + func (t *Transport) RoundTrip(r *http.Request) (*http.Response, error)