package
6.0.0-beta1+incompatible
Repository: https://github.com/jshi-git/beats.git
Documentation: pkg.go.dev
# Functions
GetEsHost returns the elasticsearch host.
GetEsPort returns the elasticsearch port.
GetTestingElasticsearch creates a test client.
NewClient instantiates a new client.
NewConnectedClient creates a new Elasticsearch client based on the given config.
NewElasticsearchClients returns a list of Elasticsearch clients based on the given configuration.
RegisterConnectCallback registers a callback for the elasticsearch output The callback is called each time the client connects to elasticsearch.
# Constants
ElasticsearchDefaultHost is the default host for elasticsearch.
ElasticsearchDefaultPort is the default port for elasticsearch.
# Variables
ErrJSONEncodeFailed indicates encoding failures.
ErrNotConnected indicates failure due to client having no valid connection.
ErrResponseRead indicates error parsing Elasticsearch response.
# Structs
No description provided by the author
Client is an elasticsearch client.
ClientSettings contains the settings for a client.
Connection manages the connection for a given client.
CountResults contains the count of results.
Hits contains the hits.
QueryResult contains the result of a query.
SearchResults contains the results of a search.
# Type aliases
MetaBuilder creates meta data for bulk requests.