Documentation ¶
Overview ¶
Package coordinator implements all features necessary to initialize and monitor elasticsearch components
On-start :
* Load Configuration :
- Instances + Logical Indices + Cron
* Check if any corresponding indices exists * If so, Check if any corresponding aliases exists * Check if any corresponding templates exists
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Instance ¶
type Instance struct { Initialized bool Name string Urls []string LogicalIndices map[string]LogicalIndex }
Instance represents a functional Myrtea instance
func GetInstance ¶
func GetInstance() *Instance
func (*Instance) LogicalIndex ¶ added in v5.2.0
func (i *Instance) LogicalIndex(modelName string) LogicalIndex
type LogicalIndex ¶
type LogicalIndexCron ¶ added in v5.5.0
type LogicalIndexCron struct { Initialized bool Name string Cron *cron.Cron Model modeler.Model // contains filtered or unexported fields }
LogicalIndexCron abstracts a group a technical elasticsearchv8 indices, which are accessibles with specific aliases
func NewLogicalIndexCron ¶ added in v5.5.0
func NewLogicalIndexCron(instanceName string, model modeler.Model) (*LogicalIndexCron, error)
func (*LogicalIndexCron) FindIndices ¶ added in v5.5.0
FindIndices search in indices referential every indices between two dates (calculated using current time and depth)
func (*LogicalIndexCron) GetCron ¶ added in v5.5.0
func (logicalIndex *LogicalIndexCron) GetCron() *cron.Cron
type LogicalIndexTimeBased ¶ added in v5.5.0
type LogicalIndexTimeBased struct { Initialized bool Name string Cron *cron.Cron Model modeler.Model LiveIndices []string // contains filtered or unexported fields }
LogicalIndexTimeBased abstracts a group a technical elasticsearchv8 indices, which are accessibles with specific aliases
func NewLogicalIndexTimeBased ¶ added in v5.5.0
func NewLogicalIndexTimeBased(instanceName string, model modeler.Model) (*LogicalIndexTimeBased, error)
func (*LogicalIndexTimeBased) FetchIndices ¶ added in v5.5.0
func (logicalIndex *LogicalIndexTimeBased) FetchIndices()
func (*LogicalIndexTimeBased) FindIndices ¶ added in v5.5.0
func (*LogicalIndexTimeBased) GetAllIndices ¶ added in v5.5.0
func (logicalIndex *LogicalIndexTimeBased) GetAllIndices() []string
func (*LogicalIndexTimeBased) GetCron ¶ added in v5.5.0
func (logicalIndex *LogicalIndexTimeBased) GetCron() *cron.Cron