Documentation ¶
Index ¶
Constants ¶
View Source
const ESV1 = "1."
View Source
const ESV2 = "2."
View Source
const ESV5 = "5."
Variables ¶
This section is empty.
Functions ¶
func ExitOnError ¶
func ExitOnError(err error)
Types ¶
type ElasticInfo ¶
type ElasticInfo struct { ClusterName string `json:"cluster_name"` Name string `json:"name"` Status int `json:"status"` Tagline string `json:"tagline"` Version struct { BuildHash string `json:"build_hash"` BuildSnapshot bool `json:"build_snapshot"` BuildTimestamp string `json:"build_timestamp"` LuceneVersion string `json:"lucene_version"` Number string `json:"number"` } `json:"version"` }
var Info ElasticInfo
func GetElasticInfo ¶
func GetElasticInfo(url string) (ElasticInfo, error)
*
- GetElasticInfo from the given url and returns it to be used by the application.
type EsV1 ¶
type EsV1 struct { Client *elastic.Client SearchConfig struct { Index string Query string Field string Buffersize int } // contains filtered or unexported fields }
func UseClientV1 ¶
func (EsV1) GetResultString ¶
type EsV5 ¶
type EsV5 struct { Client *elastic.Client SearchConfig struct { Index string Query string Field string Buffersize int } // contains filtered or unexported fields }
func UseClientV5 ¶
func (EsV5) GetResultString ¶
Click to show internal directories.
Click to hide internal directories.