Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewESClient ¶
func NewESClient(cfg ElasticClientConfig) (*elastic.Client, error)
Types ¶
type ElasticClientConfig ¶
type ElasticClientConfig struct { Addr string `yaml:"addr"` Service string `yaml:"service"` Username string `yaml:"username"` Password string `yaml:"password"` Sniff bool `yaml:"sniff"` HealthCheck bool `yaml:"healthCheck"` Gzip bool `yaml:"gzip"` Decoder elastic.Decoder RetryStrategy elastic.Retrier HttpClient *http.Client Other []elastic.ClientOptionFunc }
Click to show internal directories.
Click to hide internal directories.