Documentation
¶
Index ¶
- Variables
- type Config
- type Manage
- func (m *Manage) AddMonitor(mon *monitor.Monitor)
- func (m *Manage) GetDataDirectory() string
- func (m *Manage) GetMonitorAlertTimes() (result map[string]monitor.AlertTimes)
- func (m *Manage) GetMonitorNames() (result []string)
- func (m *Manage) GetMonitorVideoStats(monitorName string) (readerIn *videosource.VideoStats, readerOut *videosource.VideoStats)
- func (m *Manage) RemoveMonitor(mon *monitor.Monitor)
- func (m *Manage) Start()
- func (m *Manage) Stop()
- func (m *Manage) Subscribe(monitorName string, key string) <-chan videosource.ProcessedImage
- func (m *Manage) Unsubscribe(monitorName string, key string)
- func (m *Manage) Wait()
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ConfigFilename = "manage.yaml"
)
Config Constants
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Data string `yaml:"data,omitempty"` Monitors []mon `yaml:"monitors"` }
Config contains the parameters for Manage
type Manage ¶
type Manage struct {
// contains filtered or unexported fields
}
Manage contains all the monitors and manages them
func (*Manage) AddMonitor ¶
AddMonitor adds a new monitor to manage
func (*Manage) GetDataDirectory ¶
GetDataDirectory returns the save data directory
func (*Manage) GetMonitorAlertTimes ¶
func (m *Manage) GetMonitorAlertTimes() (result map[string]monitor.AlertTimes)
GetMonitorAlertTimes returns all monitor alert times
func (*Manage) GetMonitorNames ¶
GetMonitorNames returns a list of monitor names
func (*Manage) GetMonitorVideoStats ¶
func (m *Manage) GetMonitorVideoStats(monitorName string) (readerIn *videosource.VideoStats, readerOut *videosource.VideoStats)
GetMonitorVideoStats returns the monitor's video stats
func (*Manage) RemoveMonitor ¶
RemoveMonitor will stop, wait, and remove from manage
func (*Manage) Subscribe ¶
func (m *Manage) Subscribe(monitorName string, key string) <-chan videosource.ProcessedImage
Subscribe to a monitor's video images
func (*Manage) Unsubscribe ¶
Unsubscribe to a monitor's video images
Click to show internal directories.
Click to hide internal directories.