Versions in this module Expand all Collapse all v8 v8.13.1 Apr 10, 2024 Changes in this version + const HeaderClientMeta + const Version + func NewOpenTelemetryInstrumentation(provider trace.TracerProvider, captureSearchBody bool) elastictransport.Instrumentation + type BaseClient struct + Transport elastictransport.Interface + func (c *BaseClient) DiscoverNodes() error + func (c *BaseClient) InstrumentationEnabled() elastictransport.Instrumentation + func (c *BaseClient) Metrics() (elastictransport.Metrics, error) + func (c *BaseClient) Perform(req *http.Request) (*http.Response, error) + type Client struct + func NewClient(cfg Config) (*Client, error) + func NewDefaultClient() (*Client, error) + type Config struct + APIKey string + Addresses []string + CACert []byte + CertificateFingerprint string + CloudID string + CompressRequestBody bool + CompressRequestBodyLevel int + ConnectionPoolFunc func([]*elastictransport.Connection, elastictransport.Selector) elastictransport.ConnectionPool + DisableMetaHeader bool + DisableRetry bool + DiscoverNodesInterval time.Duration + DiscoverNodesOnStart bool + EnableCompatibilityMode bool + EnableDebugLogger bool + EnableMetrics bool + Header http.Header + Instrumentation elastictransport.Instrumentation + Logger elastictransport.Logger + MaxRetries int + Password string + PoolCompressor bool + RetryBackoff func(attempt int) time.Duration + RetryOnError func(*http.Request, error) bool + RetryOnStatus []int + Selector elastictransport.Selector + ServiceToken string + Transport http.RoundTripper + Username string + type TypedClient struct + func NewTypedClient(cfg Config) (*TypedClient, error)