Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckESConnection ¶
func CheckESConnection(es EsConnection) error
CheckESConnection checs if the connection to ElasticSearch can be done es: connection details to the ElasticSearch database
func FormatEsIndices ¶
FormatEsIndices formats the ES Indices information to print it or something esIndices: indices to format prefix: a prefix for each ES index postfix: a postfix for each ES index
Types ¶
type EsConnection ¶
EsConnection details to the ElasticSearch database
func (*EsConnection) PrettyString ¶
func (connection *EsConnection) PrettyString(callback func(args ...interface{}))
PrettyString prints the ES connection details in a nice way callback: function to use to print the information
type EsIndex ¶
type EsIndex struct { Index string `json:"index"` // contains filtered or unexported fields }
EsIndex maps indices data from ES REST API response API endpoint: /_cat/indices?format=json
func GetEsIndex ¶
func GetEsIndex(es EsConnection, indexName string) EsIndex
GetEsIndex gets information from an specific ElasticSearch index es: connection details to the ElasticSearch database indexName: name of the index
func GetEsIndices ¶
func GetEsIndices(es EsConnection) ([]EsIndex, error)
GetEsIndices returns the indices from the ElasticSearch node es: connection details to the ElasticSearch database
func (*EsIndex) GetIndexSpans ¶
GetIndexSpans gets the spans associated to one index