Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ERHits ¶ added in v1.3.0
type ERHits struct { Total int `json:"total"` MaxScore float32 `json:"max_score"` Hits []ERSearchHit `json:"hits"` }
type ERSearchHit ¶ added in v1.3.0
type ERSearchHit struct { Index string `json:"_index"` Type string `json:"_type"` ID string `json:"_id"` Score float32 `json:"_score"` Source IndexResponse `json:"_source"` }
type ElasticResponse ¶ added in v1.3.0
type ElasticResponse struct { Took int `json:"took"` TimedOut bool `json:"timed_out"` Shards ERShards `json:"_shards"` Hits ERHits `json:"hits"` }
ElasticResponse is the struct we unmarshal the response from an ElasticSearch query to.
type IndexManager ¶
func (*IndexManager) Init ¶
func (im *IndexManager) Init(bootstrap bool)
func (*IndexManager) Start ¶
func (im *IndexManager) Start(wg *sync.WaitGroup)
type IndexResponse ¶
type IndexResponse struct { Path string `json:"path"` Depth int `json:"depth"` Tenant string `json:"tenant"` Leaf bool `json:"leaf"` }
IndexResponse defines the individual elements returned as an array by "GET /paths".
type MetricManager ¶
type MetricManager struct {
// contains filtered or unexported fields
}
func (*MetricManager) Init ¶
func (mm *MetricManager) Init(bootstrap bool, im IndexManager)
func (*MetricManager) Start ¶
func (mm *MetricManager) Start(wg *sync.WaitGroup)
Click to show internal directories.
Click to hide internal directories.