Versions in this module Expand all Collapse all v5 v5.6.1 Jul 8, 2019 v5.6.0 Apr 14, 2019 Changes in this version + const Version + type Client struct + func New(cfg Config) *Client + func (c *Client) Perform(req *http.Request) (*http.Response, error) + func (c *Client) URLs() []*url.URL + type ColorLogger struct + EnableRequestBody bool + EnableResponseBody bool + Output io.Writer + func (l *ColorLogger) LogRoundTrip(req *http.Request, res *http.Response, err error, start time.Time, ...) error + func (l *ColorLogger) RequestBodyEnabled() bool + func (l *ColorLogger) ResponseBodyEnabled() bool + type Config struct + Logger Logger + Password string + Transport http.RoundTripper + URLs []*url.URL + Username string + type CurlLogger struct + EnableRequestBody bool + EnableResponseBody bool + Output io.Writer + func (l *CurlLogger) LogRoundTrip(req *http.Request, res *http.Response, err error, start time.Time, ...) error + func (l *CurlLogger) RequestBodyEnabled() bool + func (l *CurlLogger) ResponseBodyEnabled() bool + type Interface interface + Perform func(*http.Request) (*http.Response, error) + type JSONLogger struct + EnableRequestBody bool + EnableResponseBody bool + Output io.Writer + func (l *JSONLogger) LogRoundTrip(req *http.Request, res *http.Response, err error, start time.Time, ...) error + func (l *JSONLogger) RequestBodyEnabled() bool + func (l *JSONLogger) ResponseBodyEnabled() bool + type Logger interface + LogRoundTrip func(*http.Request, *http.Response, error, time.Time, time.Duration) error + RequestBodyEnabled func() bool + ResponseBodyEnabled func() bool + type RoundRobinSelector struct + func NewRoundRobinSelector(urls ...*url.URL) *RoundRobinSelector + func (r *RoundRobinSelector) Select() (*url.URL, error) + type Selector interface + Select func() (*url.URL, error) + type TextLogger struct + EnableRequestBody bool + EnableResponseBody bool + Output io.Writer + func (l *TextLogger) LogRoundTrip(req *http.Request, res *http.Response, err error, start time.Time, ...) error + func (l *TextLogger) RequestBodyEnabled() bool + func (l *TextLogger) ResponseBodyEnabled() bool Other modules containing this package github.com/elastic/go-elasticsearch github.com/elastic/go-elasticsearch/v6 github.com/elastic/go-elasticsearch/v7