Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HikCamera ¶
type HikCamera struct { Name string `json:"name"` Url string `json:"url"` Username string `json:"username"` Password string `json:"password"` EventReader HikEventReader BrokenHttp bool AuthMethod HttpAuthMethod }
type HikEventReader ¶
type HttpAuthMethod ¶ added in v1.2.3
type HttpAuthMethod int
const ( Basic HttpAuthMethod = iota Digest )
type HttpEventReader ¶
type HttpEventReader struct { Debug bool // contains filtered or unexported fields }
func (*HttpEventReader) ReadEvents ¶
func (eventReader *HttpEventReader) ReadEvents(camera *HikCamera, channel chan<- HikEvent, callback func())
type Server ¶
type TcpEventReader ¶
type TcpEventReader struct {
Debug bool
}
func (*TcpEventReader) ReadEvents ¶
func (eventReader *TcpEventReader) ReadEvents(camera *HikCamera, channel chan<- HikEvent, callback func())
type XmlEvent ¶
type XmlEvent struct { XMLName xml.Name `xml:"EventNotificationAlert"` IpAddress string `xml:"ipAddress"` Port int `xml:"portNo"` ChannelId int `xml:"channelID"` Time time.Time `xml:"dateTime"` Id int `xml:"activePostCount"` Type string `xml:"eventType"` State string `xml:"eventState"` Description string `xml:"eventDescription"` Active bool Camera *HikCamera }
Click to show internal directories.
Click to hide internal directories.