Versions in this module Expand all Collapse all v0 v0.1.0 May 12, 2021 Changes in this version + const PluginsRoot + func NewClient(ctx context.Context, plugins ...Plugin) (*elasticsearch.Client, error) + func NewClientWithOptions(ctx context.Context, o *Options, plugins ...Plugin) (client *elasticsearch.Client, err error) + type Logger struct + func (l *Logger) LogRoundTrip(req *http.Request, res *http.Response, err error, start time.Time, ...) error + func (l *Logger) RequestBodyEnabled() bool + func (l *Logger) ResponseBodyEnabled() bool + type Options struct + APIKey string + Addresses []string + CACert string + CloudID string + DisableRetry bool + DiscoverNodesInterval time.Duration + DiscoverNodesOnStart bool + EnableDebugLogger bool + EnableMetrics bool + EnableRetryOnTimeout bool + MaxRetries int + Password string + RetryBackoff time.Duration + RetryOnStatus []int + Username string + func NewOptions() (*Options, error) + func NewOptionsWithPath(path string) (opts *Options, err error) + type Plugin func(context.Context, *elasticsearch.Client) error