Documentation
¶
Index ¶
- Constants
- Variables
- func HikCaptureImage(user int, byStartChan int, imagePath string) int
- func HikFormatDisk(user int, disk int) int
- func HikLogout(user int)
- func HikOnAlarm(user int, alarmPort int, f OnMsg)
- func HikOnAlarmV30(user int, alarmPort int, f OnMsg)
- func HikReboot(user int) int
- func HikSaveFile(userId int, srcfile string, destfile string) int
- func HikTest()
- func HikVersion() string
- type AlarmItem
- type DevInfo
- type MotionArea
- type MotionAreas
- type MotionVideo
- type MotionVideos
- type OnMsg
Constants ¶
View Source
const COMM_ALARM int = 0x1100 //8000 Upload alarm message
View Source
const COMM_ALARM_V30 int = 0x4000 //9000 upload alarm message
View Source
const COMM_DEV_STATUS_CHANGED int = 0x7000 //Device status change alarm upload
Variables ¶
View Source
var Listeners []OnMsg
Functions ¶
func HikCaptureImage ¶
HCaptureImage - capture image
func HikFormatDisk ¶ added in v0.0.4
HikFormatDisk - format disks
func HikOnAlarm ¶
C.OnAlarm(C.int(user), C.int(*alarmParam))
func HikOnAlarmV30 ¶
C.OnAlarmV30(C.int(user), C.int(*alarmParam))
func HikSaveFile ¶
int HSaveFile(int userId, char *srcfile, char *destfile);
Types ¶
type DevInfo ¶
type DevInfo struct {
SSerialNumber string // Device serial No.
ByDiskNum int // Number of HDDs
ByDVRType int // Device type
ByZeroChanNum int // Number of channel-zero
ByStartChan int // Start No. of analog channel, which starts from 1.
ByChanNum int // Number of channels
ByStartDChan int // Start No. of digital channel, 0-no digital channel (e.g., DVR, network camera).
ByDChanNum int // Number of digital channels
}
type MotionAreas ¶
type MotionAreas struct {
Areas []MotionArea
}
func HikMotionArea ¶
func HikMotionArea(lUserID int, chno int) (int, MotionAreas)
HMotionArea - motion area.
type MotionVideo ¶
type MotionVideos ¶
type MotionVideos struct {
Videos []MotionVideo
Count int
}
func HikListVideo ¶
func HikListVideo(lUserID int, chno int) (int, MotionVideos)
HListVideo - list video
Click to show internal directories.
Click to hide internal directories.