models

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2020 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DeviceGeneralInformation

type DeviceGeneralInformation struct {
	Time *TimeInformation
	Dst  *DstInformation
	Norm *DeviceNorm
}

type DeviceInformation

type DeviceInformation struct {
	B485            int    `json:"B485"`
	IoInputNumber   int    `json:"IOInputNum"`
	IoOutputNumber  int    `json:"IOOutputNum"`
	AudioNumber     int    `json:"AudioNum"`
	BuildDay        string `json:"buildDay"`
	ConfigVersion   string `json:"cfgVer"`
	ChannelNumber   int    `json:"channelNum"`
	Detail          string `json:"detail"`
	DiskNumber      int    `json:"diskNum"`
	FirmwareVersion string `json:"firmVer"`
	HardwareVersion string `json:"hardVer"`
	Model           string `json:"model"`
	Name            string `json:"name"`
	Serial          string `json:"serial"`
	Type            string `json:"type"`
	Wifi            bool   `json:"wifi"`
}

type DeviceNorm

type DeviceNorm struct {
	Norm string `json:"norm"`
}

type DevicePerformanceInformation

type DevicePerformanceInformation struct {
	CodecRate     int `json:"codecRate"`
	CpuUsed       int `json:"cpuUsed"`
	NetThroughput int `json:"netThroughput"`
}

type DstInformation

type DstInformation struct {
	Enable       bool `json:"enable"`
	EndHour      int  `json:"endHour"`
	EndMin       int  `json:"endMin"`
	EndMon       int  `json:"endMon"`
	EndSec       int  `json:"endSec"`
	EndWeek      int  `json:"endWeek"`
	EndWeekday   int  `json:"endWeekday"`
	Offset       int  `json:"offset"`
	StartHour    int  `json:"startHour"`
	StartMin     int  `json:"startMin"`
	StartMon     int  `json:"startMon"`
	StartSec     int  `json:"startSec"`
	StartWeek    int  `json:"startWeek"`
	StartWeekday int  `json:"startWeekday"`
}

type Encoding

type Encoding struct {
	Audio      bool                `json:"audio"`
	Channel    int                 `json:"channel"`
	MainStream RecordingMainStream `json:"mainStream"`
	SubStream  RecordingSubStream  `json:"subStream"`
}

type HddInfo

type HddInfo struct {
	Capacity int `json:"capacity"`
	Format   int `json:"format"`
	ID       int `json:"id"`
	Mount    int `json:"mount"`
	Size     int `json:"size"`
}

type LoginToken

type LoginToken struct {
	Name      string `json:"name"`
	LeaseTime int    `json:"leaseTime"`
}

type Logout

type Logout struct {
	RspCode int `json:"rspCode"`
}

type MaskArea

type MaskArea struct {
	Block  MaskAreaBlock  `json:"block"`
	Screen MaskAreaScreen `json:"screen"`
}

type MaskAreaBlock

type MaskAreaBlock struct {
	Height int `json:"height"`
	Width  int `json:"width"`
	X      int `json:"x"`
	Y      int `json:"y"`
}

type MaskAreaScreen

type MaskAreaScreen struct {
	Height int `json:"height"`
	Width  int `json:"width"`
}

type MaskData

type MaskData struct {
	Area    []MaskArea `json:"area"`
	Channel int        `json:"channel"`
	Enable  bool       `json:"enable"`
}

type NetworkDDNS

type NetworkDDNS struct {
	Domain   string `json:"domain"`
	Enable   bool   `json:"enable"`
	Password string `json:"password"`
	Type     string `json:"type"`
	Username string `json:"userName"`
}

type NetworkEmail

type NetworkEmail struct {
	Username   string   `json:"username"`
	Password   string   `json:"password"`
	Addr1      string   `json:"addr1"`
	Addr2      string   `json:"addr2"`
	Addr3      string   `json:"addr3"`
	Attachment string   `json:"attachment"`
	Interval   string   `json:"interval"`
	Nickname   string   `json:"nickName"`
	Schedule   Schedule `json:"schedule"`
	SmtpPort   int      `json:"smtpPort"`
	SmtpServer string   `json:"smtpServer"`
	SSL        bool     `json:"ssl"`
}

type NetworkFTP

type NetworkFTP struct {
	Username   string   `json:"userName"`
	Password   string   `json:"password"`
	Anonymous  bool     `json:"anonymous"`
	Interval   int      `json:"interval"`
	MaxSize    int      `json:"maxSize"`
	Mode       int      `json:"mode"`
	Port       int      `json:"port"`
	RemoteDir  string   `json:"remoteDir"`
	Schedule   Schedule `json:"schedule"`
	Server     string   `json:"server"`
	StreamType int      `json:"streamType"`
}

type NetworkGeneral

type NetworkGeneral struct {
	ActiveLink string               `json:"activeLink"`
	Dns        NetworkGeneralDns    `json:"dns"`
	Mac        string               `json:"mac"`
	Static     NetworkGeneralStatic `json:"static"`
	Type       string               `json:"type"`
}

type NetworkGeneralDns

type NetworkGeneralDns struct {
	Auto int    `json:"auto"`
	Dns1 string `json:"dns1"`
	Dns2 string `json:"dns2"`
}

type NetworkGeneralStatic

type NetworkGeneralStatic struct {
	Gateway string `json:"gateway"`
	Ip      string `json:"ip"`
	Mask    string `json:"mask"`
}

type NetworkNTP

type NetworkNTP struct {
	Enable   bool   `json:"enable"`
	Interval int    `json:"interval"`
	Port     int    `json:"port"`
	Server   string `json:"server"`
}

type NetworkPush

type NetworkPush struct {
	Schedule Schedule `json:"schedule"`
}

type Osd

type Osd struct {
	BgColor    bool       `json:"bgcolor"`
	Channel    int        `json:"channel"`
	OsdChannel OsdChannel `json:"osdChannel"`
	OsdTime    OsdTime    `json:"osdTime"`
}

type OsdChannel

type OsdChannel struct {
	Enable bool   `json:"enable"`
	Name   string `json:"name"`
	Pos    string `json:"pos"`
}

type OsdTime

type OsdTime struct {
	Enable bool   `json:"enable"`
	Pos    string `json:"pos"`
}

type PtzOperation

type PtzOperation struct{}

TODO: update

type PtzPreset

type PtzPreset struct{}

TODO: update

type Recording

type Recording struct {
	Channel    int      `json:"channel"`
	Overwrite  bool     `json:"overwrite"`
	PostRecord string   `json:"postRec"`
	PreRecord  bool     `json:"preRec"`
	Schedule   Schedule `json:"schedule"`
}

type RecordingMainStream

type RecordingMainStream struct {
	BitRate   int    `json:"bitRate"`
	FrameRate int    `json:"frameRate"`
	Profile   string `json:"profile"`
	Size      string `json:"size"`
}

type RecordingSubStream

type RecordingSubStream struct {
	BitRate   int    `json:"bitRate"`
	FrameRate int    `json:"frameRate"`
	Profile   string `json:"profile"`
	Size      string `json:"size"`
}

type ScanWifi

type ScanWifi struct {
}

TODO: update with its actual data structure

type Schedule

type Schedule struct {
	Enable bool   `json:"enable"`
	Table  string `json:"table"`
}

type TimeInformation

type TimeInformation struct {
	Day      int    `json:"day"`
	Hour     int    `json:"hour"`
	HourFmt  bool   `json:"hourFmt"`
	Min      int    `json:"min"`
	Mon      int    `json:"mon"`
	Sec      int    `json:"sec"`
	TimeFmt  string `json:"timeFmt"`
	TimeZone int    `json:"timeZone"`
	Year     int    `json:"year"`
}

type User

type User struct {
	Level             string `json:"level"`
	Username          string `json:"userName"`
	CanBeDisconnected bool   `json:"canbeDisconn,omitempty"`
	IP                string `json:"ip,omitempty"`
	SessionId         int    `json:"sessionId,omitempty"`
}

type Wifi

type Wifi struct {
}

TODO: update with its actual data structure

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL