Documentation ¶
Index ¶
- Constants
- type Coordinate
- type DahuaCoaxialCaps
- type DahuaCoaxialStatus
- type DahuaDetail
- type DahuaError
- type DahuaEvent
- type DahuaFeature
- type DahuaFile
- type DahuaFileSource
- type DahuaLicense
- type DahuaPermissionLevel
- type DahuaPreset
- type DahuaRPCStatus
- type DahuaScanType
- type DahuaSoftwareVersion
- type DahuaStorage
- type DahuaSunriseSunset
- type DahuaUptime
- type DahuaUser
- type DahuaWorkerState
- type DahuaWorkerType
- type Storage
- type TimeRange
Constants ¶
View Source
const ( DahuaFileType_JPG = "jpg" DahuaFileType_DAV = "dav" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Coordinate ¶
type DahuaCoaxialCaps ¶
type DahuaCoaxialStatus ¶
type DahuaDetail ¶
type DahuaDetail struct { SN string `json:"sn"` DeviceClass string `json:"device_class"` DeviceType string `json:"device_type"` HardwareVersion string `json:"hardware_version"` MarketArea string `json:"market_area"` ProcessInfo string `json:"process_info"` Vendor string `json:"vendor"` OnvifVersion string `json:"onvif_version"` AlgorithmVersion string `json:"algorithm_version"` }
type DahuaError ¶
type DahuaError struct {
Error string `json:"error"`
}
type DahuaEvent ¶
type DahuaFeature ¶
type DahuaFeature int
const ( // DahuaFeature_Camera means the device is a camera. DahuaFeature_Camera DahuaFeature = 1 << iota )
func (DahuaFeature) EQ ¶
func (f DahuaFeature) EQ(feature DahuaFeature) bool
type DahuaFile ¶
type DahuaFile struct { Channel int `json:"channel"` StartTime time.Time `json:"start_time"` EndTime time.Time `json:"end_time"` Length int `json:"length"` Type string `json:"type"` FilePath string `json:"file_path"` Duration int `json:"duration"` Disk int `json:"disk"` VideoStream string `json:"video_stream"` Flags []string `json:"flags"` Events []string `json:"events"` Cluster int `json:"cluster"` Partition int `json:"partition"` PicIndex int `json:"pic_index"` Repeat int `json:"repeat"` WorkDir string `json:"work_dir"` WorkDirSN bool `json:"work_dir_sn"` Storage Storage `json:"storage"` }
type DahuaFileSource ¶
type DahuaFileSource string
const ( DahuaFileSource_Device DahuaFileSource = "device" DahuaFileSource_Email DahuaFileSource = "email" )
type DahuaLicense ¶
type DahuaLicense struct { AbroadInfo string `json:"abroad_info"` AllType bool `json:"all_type"` DigitChannel int `json:"digit_channel"` EffectiveDays int `json:"effective_days"` EffectiveTime time.Time `json:"effective_time"` LicenseID int `json:"license_id"` ProductType string `json:"product_type"` Status int `json:"status"` Username string `json:"username"` }
type DahuaPermissionLevel ¶
type DahuaPermissionLevel int
const ( DahuaPermissionLevel_User DahuaPermissionLevel = iota DahuaPermissionLevel_Operator DahuaPermissionLevel_Admin )
func (DahuaPermissionLevel) String ¶
func (l DahuaPermissionLevel) String() string
type DahuaPreset ¶
type DahuaRPCStatus ¶
type DahuaScanType ¶
type DahuaScanType string
var ( DahuaScanType_Unknown DahuaScanType = "" DahuaScanType_Full DahuaScanType = "full" DahuaScanType_Quick DahuaScanType = "quick" DahuaScanType_Reverse DahuaScanType = "reverse" )
type DahuaSoftwareVersion ¶
type DahuaStorage ¶
type DahuaSunriseSunset ¶
type DahuaSunriseSunset struct { SwitchMode config.SwitchMode `json:"switch_mode"` TimeSection dahuarpc.TimeSection `json:"time_section"` }
type DahuaUptime ¶
type DahuaWorkerState ¶
type DahuaWorkerState string
const ( DahuaWorkerState_Connecting DahuaWorkerState = "connecting" DahuaWorkerState_Connected DahuaWorkerState = "connected" DahuaWorkerState_Disconnected DahuaWorkerState = "disconnected" )
type DahuaWorkerType ¶
type DahuaWorkerType string
const ( DahuaWorkerType_Event DahuaWorkerType = "event" DahuaWorkerType_Coaxial DahuaWorkerType = "coaxial" DahuaWorkerType_QuickScan DahuaWorkerType = "quick-scan" )
Click to show internal directories.
Click to hide internal directories.