Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) AddMonitor(opts MonitorOpts) (Monitor, error)
- func (c *Client) GetEventById(ID int) (Event, error)
- func (c *Client) GetEvents(opts *EventOpts) (Events, error)
- func (c *Client) GetMonitorById(ID int) (Monitor, error)
- func (c *Client) GetMonitors() (Monitors, error)
- func (c *Client) MonitorForEvents(opts *EventOpts, interval int, eventChan chan Events)
- func (c *Client) StopEventMonitoring()
- type Collection
- type Event
- type EventOpts
- type Events
- type Monitor
- func (m *Monitor) AlarmStatus() (int, error)
- func (m *Monitor) Disable() error
- func (m *Monitor) Edit(opts MonitorOpts) error
- func (m *Monitor) Enable() error
- func (m *Monitor) ForceAlarm() error
- func (m *Monitor) GetEvents(opts *EventOpts) (Events, error)
- func (m *Monitor) MonitorForEvents(eventType string, interval int, eventChan chan Events)
- func (m *Monitor) Refresh() (Monitor, error)
- func (m *Monitor) SetFunction(f string) error
- func (m *Monitor) StopAlarm() error
- func (m *Monitor) StopEventMonitoring()
- type MonitorOpts
- type Monitors
Constants ¶
View Source
const Version = 0.7
Version of the package
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client is the api client used for communicating with the zoneminder API
func (*Client) AddMonitor ¶
func (c *Client) AddMonitor(opts MonitorOpts) (Monitor, error)
func (*Client) GetMonitors ¶
func (*Client) MonitorForEvents ¶
func (*Client) StopEventMonitoring ¶
func (c *Client) StopEventMonitoring()
type Collection ¶
type Event ¶
type Event struct {
*Client
ID int `json:",string"`
MonitorID int `json:",string"`
Name string
Cause string
StartTime date
EndTime date
Width int `json:",string"`
Height int `json:",string"`
Length float64 `json:",string"`
Frames int `json:",string"`
AlarmFrames int `json:",string"`
TotScore int `json:",string"`
AvgScore int `json:",string"`
MaxScore int `json:",string"`
Archived int `json:",string"`
Videoed int `json:",string"`
Uploaded int `json:",string"`
Emailed int `json:",string"`
Message int `json:",string"`
Executed int `json:",string"`
Notes string
}
Event is an event sent back from zoneminder
type Monitor ¶
type Monitor struct {
*Client
ID int `json:",string"`
Name string
ServerID int `json:",string"`
Type string
Function string
Enabled int `json:",string"`
LinkedMonitors string
Triggers string
Device string
Channel int `json:",string"`
Format int `json:",string"`
V4LMultiBuffer bool
V4LCapturesPerFrame int `json:",string"`
Protocol string
Method string
Host string
Port int `json:",string"`
SubPath string
Path string
Options string
User string
Pass string
Width int `json:",string"`
Height int `json:",string"`
Colours int `json:",string"`
Palette int `json:",string"`
Orientation int `json:",string"`
Deinterlacing int `json:",string"`
RTSPDescribe bool
Brightness int `json:",string"`
Contrast int `json:",string"`
Hue int `json:",string"`
Colour int `json:",string"`
EventPrefix string
LabelFormat string
LabelX int `json:",string"`
LabelY int `json:",string"`
LabelSize int `json:",string"`
ImageBufferCount int `json:",string"`
WarmupCount int `json:",string"`
PreEventCount int `json:",string"`
PostEventCount int `json:",string"`
StreamReplayBuffer int `json:",string"`
AlarmFrameCount int `json:",string"`
SectionLength int `json:",string"`
FrameSkip int `json:",string"`
MotionFrameSkip int `json:",string"`
AnalysisFPS float64 `json:",string"`
AnalysisUpdateDelay int `json:",string"`
MaxFPS float64 `json:",string"`
AlarmMaxFPS float64 `json:",string"`
FPSReportInterval int `json:",string"`
RefBlendPerc int `json:",string"`
AlarmRefBlendPerc int `json:",string"`
Controllable int `json:",string"`
ControlID int `json:",string"`
ControlDevice string
ControlAddress string
AutoStopTimeout string
TrackMotion int `json:",string"`
TrackDelay int `json:",string"`
ReturnLocation int `json:",string"`
ReturnDelay int `json:",string"`
DefaultView string
DefaultRate int `json:",string"`
DefaultScale int `json:",string"`
SignalCheckColour string
WebColour string
Exif bool
Sequence int `json:",string"`
// contains filtered or unexported fields
}
Monitor is the monitor object from zoneminder
func (*Monitor) AlarmStatus ¶
func (*Monitor) Edit ¶
func (m *Monitor) Edit(opts MonitorOpts) error
func (*Monitor) ForceAlarm ¶
func (*Monitor) MonitorForEvents ¶
func (*Monitor) SetFunction ¶
func (*Monitor) StopEventMonitoring ¶
func (m *Monitor) StopEventMonitoring()
type MonitorOpts ¶
Click to show internal directories.
Click to hide internal directories.