Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Servers    []string
	Username   string
	Password   string
	Sniffer    bool          // https://github.com/olivere/elastic/wiki/Sniffing
	MaxSpanAge time.Duration // configures the maximum lookback on span reads
}

Configuration describes the configuration properties needed to connect to a ElasticSearch cluster

func (*Configuration) GetConfigs

func (c *Configuration) GetConfigs() []elastic.ClientOptionFunc

GetConfigs wraps the configs to feed to the ElasticSearch client init

func (*Configuration) NewClient

func (c *Configuration) NewClient() (es.Client, error)

NewClient creates a new ElasticSearch client

Jump to

Keyboard shortcuts

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