Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewElasticClient ¶
func NewElasticClient(cfg *ElasticConfig) (*elasticsearch.Client, error)
NewElasticClient returns a github.com/elastic/go-elasticsearch client.
func NewOlivereClient ¶
func NewOlivereClient(cfg *OlivereConfig) *elastic.Client
Types ¶
type ElasticConfig ¶
type OlivereConfig ¶
type OlivereConfig struct { Urls []string Logger *zerolog.Logger TimeoutInSeconds int // only respected when Client == nil HTTPRetries int // only respected when Client == nil Client *http.Client UserName string Password string EnableTrace bool EnableInfo bool }
func (*OlivereConfig) HasAuthentication ¶
func (cfg *OlivereConfig) HasAuthentication() bool
type Transport ¶
type Transport struct{}
Transport implements the estransport interface with the github.com/valyala/fasthttp HTTP client.
adapted from https://github.com/elastic/go-elasticsearch/blob/master/_examples/fasthttp/fasthttp.go
Click to show internal directories.
Click to hide internal directories.