elastic5x

package
v0.0.0-...-cd938e1 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	*elastic.Client
}

Client elastic.Client 扩展

type Conf

type Conf struct {
	URL         string `yaml:"url"          json:"url"`
	Sniff       bool   `yaml:"sniff"        json:"sniff"`
	Healthcheck bool   `yaml:"healthcheck"  json:"healthcheck"`

	Errorlog elastic.Logger // error log for critical messages
	Infolog  elastic.Logger // information log for e.g. response times
	Tracelog elastic.Logger // trace log for debugging
}

Conf https://github.com/olivere/elastic/wiki/Sniffing

func (Conf) MustNewClient

func (c Conf) MustNewClient() *Client

MustNewClient 新建Client

Jump to

Keyboard shortcuts

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