Documentation ¶
Index ¶
- Constants
- Variables
- func KeepTokenAlive()
- func LoginOpenplant(user, password string) (token string, err error)
- func PushMsgChan(msg map[int][2]interface{})
- func WirteRealtime()
- func WriteArchive(point []*Realtime, token string) (err error)
- func WriteRealtime(point []*Realtime, token string) (err error)
- type LoginResponse
- type Realtime
- type Token
Constants ¶
View Source
const Exp = 30
Variables ¶
View Source
var MsgChan chan map[int][2]interface{}
MsgChan 报文chan,将解析到的报文写入
View Source
var WriteChan chan []*Realtime
WriteChan 实时值chan
Functions ¶
func LoginOpenplant ¶
LoginOpenplant 登陆webapi
func WriteArchive ¶
WriteArchive 写历史数据
func WriteRealtime ¶
WriteRealtime 写实时数据
Types ¶
type LoginResponse ¶
Click to show internal directories.
Click to hide internal directories.