Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶ added in v0.9.15
type Client struct { Debug bool Host string Port int Index string Logger zap.Logger Sniff bool Client *elastic.Client NewRelic newrelic.Application }
Client is the struct of an elasticsearch client
func GetClient ¶ added in v0.9.15
func GetClient(host string, port int, index string, sniff bool, logger zap.Logger, debug bool, newRelic newrelic.Application) *Client
GetClient returns an elasticsearch client configures with the given the arguments
func GetConfiguredClient ¶ added in v0.9.15
func GetConfiguredClient() *Client
GetConfiguredClient returns an elasticsearch client with no extra configs
func GetTestClient ¶ added in v0.9.15
func GetTestClient(host string, port int, index string, sniff bool, logger zap.Logger, debug bool) *Client
GetTestClient returns a test elasticsearch client configures with the given the arguments
func (*Client) GetIndexName ¶ added in v0.9.15
GetIndexName returns the name of the index
Click to show internal directories.
Click to hide internal directories.