Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MqttMsgRecord ¶
type MqttMsgRecord struct { Id int `orm:"id,primary" json:"id"` // 主键 DeviceSn string `orm:"device_sn" json:"deviceSn"` // 设备序列号 TopicId int `orm:"topic_id" json:"topicId"` // Topic的主键 ClientName string `orm:"client_name" json:"clientName"` // 客户端名称 ClientId string `orm:"client_id" json:"clientId"` // 客户端ID Qos int `orm:"qos" json:"qos"` // Qos Payload string `orm:"payload" json:"payload"` // 传递的数据 CreatTime uint `orm:"creat_time" json:"creatTime"` // 创建时间 }
MqttMsgRecord is the golang structure for table mqtt_msg_record.
type MqttStatus ¶
type MqttStatus struct { Id int `orm:"id,primary" json:"id"` // 主键 Name string `orm:"name" json:"name"` // 设备名称 ClientId string `orm:"clientId" json:"clientId"` // MQTT连接的客户端Id Status int `orm:"status" json:"status"` // MQTT连接的状态 UserName string `orm:"userName" json:"userName"` // 登录名 CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间 UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 修改时间 }
MqttStatus is the golang structure for table mqtt_status.
type MqttTopic ¶
type MqttTopic struct { Id int `orm:"id,primary" json:"id"` // 主键 Name string `orm:"name" json:"name"` // 设备名称 ClientId string `orm:"clientId" json:"clientId"` // 客户端Id Topic string `orm:"topic" json:"topic"` // 订阅的Topic信息 Qos int `orm:"qos" json:"qos"` // 等级 RetainAsPub bool `orm:"retainAsPub" json:"retainAsPub"` // Retain As Published option RetainHandle byte `orm:"retainHandle" json:"retainHandle"` // Retain Handling option CreatedAt *gtime.Time `orm:"created_at" json:"createdAt"` // 创建时间 UpdatedAt *gtime.Time `orm:"updated_at" json:"updatedAt"` // 修改时间 }
MqttTopic is the golang structure for table mqtt_topic.
type MqttTopicRecord ¶
type MqttTopicRecord struct { Id int `orm:"id,primary" json:"id"` // 主键 Name string `orm:"name" json:"name"` // 设备名称 Topic string `orm:"topic" json:"topic"` // Topic Qos int `orm:"qos" json:"qos"` // Qos Remark string `orm:"remark" json:"remark"` // 备注 CreatTime uint `orm:"creat_time" json:"creatTime"` // 创建时间 }
MqttTopicRecord is the golang structure for table mqtt_topic_record.
Click to show internal directories.
Click to hide internal directories.