Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( IC IotConnection IotServer Server SphInfo map[string]*Sphinfo CphInfo map[string]*Cphinfo TM = timer.NewTimer() SetBytes, _ = hex.DecodeString("01030000001445C5") )
Functions ¶
func MessageCenter ¶
Types ¶
type Server ¶
type Server struct { Port int `gorm:"column:port;type:int"` Info string `gorm:"column:info;type:text"` }
Server [...]
type Sphinfo ¶
type Sphinfo struct { ID uint `gorm:"primary_key;column:id;type:int unsigned;not null"` Hgp string `gorm:"column:hgp;type:text"` Htp string `gorm:"column:htp;type:text"` Ctrl string `gorm:"column:ctrl;type:text"` Cycle int `gorm:"column:cycle;type:int"` Sw int `gorm:"column:sw;type:int"` Protocol []*model.Sensorinfo Database *gorm.DB Tname string //存储的表名字 File *os.File Redis *redis.Pool DataHandler *DataHandlerType ItoChan chan *ItoInfo }
Click to show internal directories.
Click to hide internal directories.