es

package
v0.46.1 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2020 License: Apache-2.0 Imports: 13 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