manager

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 28, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL