Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateDeviceForm ¶
type CreateDeviceForm struct { Name string `form:"name" json:"name" binding:"required,max=10"` Type string `form:"type" json:"type" binding:"required"` ServerIp string `form:"server_ip" json:"server_ip" binding:"required,max=15"` ServerPort string `form:"server_port" json:"server_port" binding:"required,max=5"` State string `form:"state" json:"state" binding:"required,oneof=running idle"` }
type CreateProtocolForm ¶
type CreateProtocolForm struct { DeviceId int `form:"device_id" json:"device_id" binding:"required"` Name string `form:"name" json:"name" binding:"required"` Content datatypes.JSON `form:"content" json:"content" binding:"required"` Qos *int `form:"qos" json:"qos" binding:"required"` Type *int `form:"type" json:"type" binding:"required"` SubTopic string `form:"sub_topic" json:"sub_topic"` PubTopic string `form:"pub_topic" json:"pub_topic" binding:"required"` Strategy datatypes.JSON `form:"strategy" json:"strategy"` }
type RestartDeviceForm ¶
type RestartDeviceForm struct {
DeviceIDS []int `form:"device_ids" json:"device_ids" binding:"required"`
}
Click to show internal directories.
Click to hide internal directories.