Documentation ¶
Overview ¶
package service implements the core of configurator
package service implements the core of configurator
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SaveConfigs ¶
SaveConfig saves new gateway.configs and returns old configuration if any
Types ¶
type Configurator ¶
Configurator - magma configurator implementation
func NewConfigurator ¶
func NewConfigurator(updateCompletionChan chan interface{}) *Configurator
NewConfigurator returns a new Configuration & attempts to feel in its configs from magmad.yml
func (*Configurator) GetExtraArgs ¶
func (c *Configurator) GetExtraArgs() *any.Any
func (*Configurator) GetName ¶
func (c *Configurator) GetName() string
Gateway Streamer Listener Interface Implementation
func (*Configurator) ReportError ¶
func (c *Configurator) ReportError(e error) error
func (*Configurator) Start ¶
func (c *Configurator) Start() error
Start registers mconfig listener and starts streaming It'll only return on error & will block in the streaming loop otherwise
func (*Configurator) Update ¶
func (c *Configurator) Update(ub *protos.DataUpdateBatch) bool
type UpdateCompletion ¶
type UpdateCompletion []string
UpdateCompletion is a type sent to update channel with every successful mconfig update it includes a list of service names of services with changed configs