Versions in this module Expand all Collapse all v1 v1.1.0 Mar 30, 2021 v1.0.0 Mar 22, 2021 Changes in this version + type IConfigLoader interface + func NewConfigFromDB() (IConfigLoader, error) + func NewConfigFromFS(path string) (IConfigLoader, error) + func NewConfigFromS3() (IConfigLoader, error) + type IController interface + Close func() error + GetModule func(id string) *Module + GetModuleIds func() []string + GetModuleIdsForAgent func(agentID string) []string + GetModuleState func(id string) *loader.ModuleState + GetModuleStates func(ids []string) map[string]*loader.ModuleState + GetModules func(ids []string) map[string]*Module + GetSharedModuleIds func() []string + Load func() error + Lock func() + SetUpdateChan func(update chan struct{}) + SetUpdateChanForAgent func(agentID string, update chan struct{}) + StartAllModules func() ([]string, error) + StartModulesForAgent func(agentID string) ([]string, error) + StartSharedModules func() ([]string, error) + StopAllModules func() ([]string, error) + StopModulesForAgent func(agentID string) ([]string, error) + StopSharedModules func() ([]string, error) + Unlock func() + UnsetUpdateChan func(update chan struct{}) + UnsetUpdateChanForAgent func(agentID string, update chan struct{}) + func NewController(r IRegAPI, c IConfigLoader, f IFilesLoader, p vxproto.IVXProto) IController + type IFilesLoader interface + func NewFilesFromFS(path string) (IFilesLoader, error) + func NewFilesFromS3() (IFilesLoader, error) + type IRegAPI interface + RegisterLuaAPI func(L *lua.State, config *loader.ModuleConfig) error + UnregisterLuaAPI func(L *lua.State, config *loader.ModuleConfig) error + type Module struct + func (m *Module) GetConfig() *loader.ModuleConfig + func (m *Module) GetFiles() *loader.ModuleFiles + func (m *Module) GetID() string