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 ¶
This section is empty.
Types ¶
type Instance ¶
type Instance struct { Initialized bool Name string Urls []string Executor *elasticsearch.EsExecutor LogicalIndices map[string]*LogicalIndex }
Instance represents a functional Myrtea instance
type LogicalIndex ¶
type LogicalIndex struct { Initialized bool Name string Cron *cron.Cron Executor *elasticsearch.EsExecutor Model modeler.Model }
LogicalIndex abstracts a group a technical elasticsearch indices, which are accessibles with specific aliases
type Master ¶
Master is a singleton component which operates and coordinates Myrtea instances
func GetInstance ¶
func GetInstance() *Master
GetInstance returns a pointer to a singleton of the coordinator master component This singleton must be initialized at least one time with Initialize()