es

package
v0.73.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 14, 2022 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package es provides a client with included tracing capabilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	elasticsearch.Client
}

Client is a wrapper for elasticsearch.Client.

func NewClient

func NewClient(cfg Config) (*Client, error)

NewClient is a modified version of elasticsearch.NewClient that injects a tracing-ready transport.

func NewDefaultClient

func NewDefaultClient() (*Client, error)

NewDefaultClient returns an empty ES client with sane defaults.

type Config

type Config elasticsearch.Config

Config is a wrapper for elasticsearch.Config.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL