Documentation ¶ Index ¶ type AlertInfo type Manager func New(logger *zap.Logger) *Manager func (m *Manager) GetAlerts() []*AlertInfo func (m *Manager) GetLoader(script *script.Script) lua.LGFunction func (m *Manager) Init(cfg config.Channels) error func (m *Manager) Name() string func (m *Manager) Send(text string, channels []string) error func (m *Manager) Stop() error Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type AlertInfo ¶ type AlertInfo struct { Name string `json:"name"` Active bool `json:"active"` ScriptName string `json:"script_name"` } type Manager ¶ type Manager struct { // contains filtered or unexported fields } func New ¶ func New(logger *zap.Logger) *Manager func (*Manager) GetAlerts ¶ func (m *Manager) GetAlerts() []*AlertInfo func (*Manager) GetLoader ¶ func (m *Manager) GetLoader(script *script.Script) lua.LGFunction func (*Manager) Init ¶ func (m *Manager) Init(cfg config.Channels) error func (*Manager) Name ¶ func (m *Manager) Name() string func (*Manager) Send ¶ func (m *Manager) Send(text string, channels []string) error func (*Manager) Stop ¶ func (m *Manager) Stop() error Source Files ¶ View all Source files get_alerts.go lua_api.go manager.go send.go Click to show internal directories. Click to hide internal directories.