Documentation ¶
Index ¶
- func GetEmail(ctx context.Context, c dahuarpc.Conn) (configmanager.Config[Email], error)
- func GetGeneral(ctx context.Context, c dahuarpc.Conn) (configmanager.Config[General], error)
- func GetLocales(ctx context.Context, c dahuarpc.Conn) (configmanager.Config[Locales], error)
- func GetNTP(ctx context.Context, c dahuarpc.Conn) (configmanager.Config[NTP], error)
- func GetRecord(ctx context.Context, c dahuarpc.Conn) (configmanager.Config[Record], error)
- func GetStorageGroup(ctx context.Context, c dahuarpc.Conn) (configmanager.Config[StorageGroup], error)
- func GetVideoAnalyseRules(ctx context.Context, c dahuarpc.Conn) (configmanager.Config[VideoAnalyseRules], error)
- func GetVideoInMode(ctx context.Context, c dahuarpc.Conn) (configmanager.Config[VideoInMode], error)
- type Email
- type General
- type Locales
- type NTP
- type Record
- type StorageGroup
- type SwitchMode
- type VideoAnalyseRule
- type VideoAnalyseRules
- type VideoInMode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetGeneral ¶
func GetLocales ¶
func GetStorageGroup ¶
func GetStorageGroup(ctx context.Context, c dahuarpc.Conn) (configmanager.Config[StorageGroup], error)
func GetVideoAnalyseRules ¶
func GetVideoAnalyseRules(ctx context.Context, c dahuarpc.Conn) (configmanager.Config[VideoAnalyseRules], error)
func GetVideoInMode ¶
func GetVideoInMode(ctx context.Context, c dahuarpc.Conn) (configmanager.Config[VideoInMode], error)
Types ¶
type Email ¶
type Email struct { Address string `json:"Address"` Anonymous bool `json:"Anonymous"` AttachEnable bool `json:"AttachEnable"` Authentication bool `json:"Authentication"` CustomTitle []interface{} `json:"CustomTitle"` Enable bool `json:"Enable"` HealthReport struct { Enable bool `json:"Enable"` Interval int `json:"Interval"` } `json:"HealthReport"` OnlyAttachment bool `json:"OnlyAttachment"` Password string `json:"Password"` Port int `json:"Port"` Receivers []string `json:"Receivers"` SendAddress string `json:"SendAddress"` SendInterv int `json:"SendInterv"` SslEnable bool `json:"SslEnable"` Title string `json:"Title"` TLSEnable bool `json:"TlsEnable"` UserName string `json:"UserName"` }
type General ¶
type Locales ¶
type Locales struct { DSTEnable bool `json:"DSTEnable"` DSTEnd struct { Day int `json:"Day"` Hour int `json:"Hour"` Minute int `json:"Minute"` Month int `json:"Month"` Week int `json:"Week"` Year int `json:"Year"` } `json:"DSTEnd"` DSTStart struct { Day int `json:"Day"` Hour int `json:"Hour"` Minute int `json:"Minute"` Month int `json:"Month"` Week int `json:"Week"` Year int `json:"Year"` } `json:"DSTStart"` TimeFormat string `json:"TimeFormat"` }
type NTP ¶
type Record ¶
type StorageGroup ¶
type StorageGroup struct { Channels []struct { MaxPictures int `json:"MaxPictures"` Path interface{} `json:"Path"` } `json:"Channels"` FileHoldTime int `json:"FileHoldTime"` Memo string `json:"Memo"` Name string `json:"Name"` OverWrite bool `json:"OverWrite"` PicturePathRule string `json:"PicturePathRule"` RecordPathRule string `json:"RecordPathRule"` }
func (StorageGroup) Validate ¶
func (c StorageGroup) Validate() error
type SwitchMode ¶
type SwitchMode int
const ( SwitchModeGeneral SwitchMode = iota SwitchModeDay SwitchModeNight SwitchModeTime SwitchModeBrightness )
func (SwitchMode) String ¶
func (m SwitchMode) String() string
type VideoAnalyseRule ¶
type VideoAnalyseRules ¶
type VideoAnalyseRules []VideoAnalyseRule
func (VideoAnalyseRules) Validate ¶
func (c VideoAnalyseRules) Validate() error
type VideoInMode ¶
type VideoInMode struct { Config []int `json:"Config"` Mode int `json:"Mode"` TimeSection [][]dahuarpc.TimeSection `json:"TimeSection"` }
func (*VideoInMode) SetSwitchMode ¶
func (m *VideoInMode) SetSwitchMode(mode SwitchMode)
func (VideoInMode) SwitchMode ¶
func (m VideoInMode) SwitchMode() SwitchMode
func (VideoInMode) Validate ¶
func (c VideoInMode) Validate() error
Click to show internal directories.
Click to hide internal directories.