Documentation
¶
Index ¶
- type ButtonMessage
- type ClientConfig
- type ClientConfigBlockChain
- type ClientConfigLocal
- type ClientConfigRecord
- type ClientConfigServer
- type ClientStatus
- type ClientUpdate
- type Device
- type Frame
- type Log
- type MboxRegister
- type MboxRegisterResponse
- type Message
- type MessagePacket
- type NetworkStatus
- type ServerBeep
- type ServerCapture
- type ServerCommand
- type ServerFile
- type ServerRecord
- type ServerRemoteSSH
- type ServerResponseJson
- type ServerRxDeviceCommand
- type ServerUpload
- type TaskDetail
- type UploadRecord
- type VideoRawDescribe
- type WatchdogRequest
- type WatchdogResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConfig ¶
type ClientConfig struct {
Server ClientConfigServer
Local ClientConfigLocal
Record ClientConfigRecord
BlockChain ClientConfigBlockChain
MasterKey string
}
type ClientConfigBlockChain ¶
type ClientConfigBlockChain struct {
Port int
}
type ClientConfigLocal ¶
type ClientConfigRecord ¶
type ClientConfigServer ¶
type ClientStatus ¶
type ClientStatus struct {
DeviceId string `bson:"devid"`
DeviceName string `bson:"name"` //设备编号 B201
Status string `bson:"status"` //设备状态 busy, idle, offline
DeviceIsWarmUp bool `bson:"warmup"` // 设备热机(自动过程)
DeviceIsBuffering bool `bson:"buffer"` // 设备缓冲(自动过程)
DeviceIsRecording bool `bson:"record"` // 设备录像(手动控制)
DeviceIsEncoding bool `bson:"encode"` // 设备编码(自动过程)
DeviceIsUploading bool `bson:"upload"` // 设备上传(自动过程)
DataSpaces string `bson:"space"` // 剩余数据空间
NetworkStatus string `bson:"network"` // 网络状态
DiskStatus string `bson:"disk"` // 磁盘状态
UploadTasks string `bson:"task"` // 上传数据队列
MachineStatus string `bson:"machine"` // 设备信息
CurrentRecordFrames int `bson:"rec_frames"` // 当前录制帧数
CurrentUploadFile string `bson:"uploading"` // 正在上传的文件
LastUpload UploadRecord `bson:"last_file"` // 上次上传文件信息
LastTalk time.Time `bson:"last_report"` // 上次心跳时间
Logs []Log // 待上传日志
LatestCuid string `bson:"last_command"` // 最近指令序号
Version string `bson:"version"` // 客户端软件版本
}
type ClientUpdate ¶
type MboxRegister ¶
type MboxRegisterResponse ¶
type MboxRegisterResponse struct {
Platform string
Config ClientConfig
DeviceName string
UseVersion string
}
type MessagePacket ¶
type NetworkStatus ¶
type ServerBeep ¶
type ServerBeep struct {
Script string
}
type ServerCapture ¶
type ServerCommand ¶
type ServerFile ¶
type ServerRecord ¶
type ServerRemoteSSH ¶
type ServerResponseJson ¶
type ServerRxDeviceCommand ¶
type ServerUpload ¶
type TaskDetail ¶
type UploadRecord ¶
type VideoRawDescribe ¶
type WatchdogRequest ¶
type WatchdogResponse ¶
Click to show internal directories.
Click to hide internal directories.