Documentation ¶
Overview ¶
Package remove Some tasks to operate ES
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MonitorTaskConfig ¶
type MonitorTaskConfig struct { Index string Expire int Term *map[string]interface{} // contains filtered or unexported fields }
MonitorTaskConfig config for each ES index
func (*MonitorTaskConfig) Lock ¶
func (c *MonitorTaskConfig) Lock()
func (*MonitorTaskConfig) SetLock ¶
func (c *MonitorTaskConfig) SetLock(l *sync.Mutex)
func (*MonitorTaskConfig) Unlock ¶
func (c *MonitorTaskConfig) Unlock()
type Query ¶
type Query struct { Range *Range `json:"query"` Size int `json:"size"` // Sort []map[string]string `json:"sort"` Term *map[string]interface{} `json:"term,omitempty"` }
Query json query to request elasticsearch
Click to show internal directories.
Click to hide internal directories.