Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Device ¶
type Device struct { Appid string //appid Uuid string //设备唯一标识 ProxyAddr string //连接的proxy ConnectionId uint64 //连接ID ConnectTime uint64 //连接时间 HeartbeatInterval uint32 //下次心跳间隔 Data []byte //用户附加信息 Ok bool // rpc通信返回结果标记位 }
session rpc通信消息格式
type DeviceInfo ¶
type DeviceInfo struct { ProxyAddr string ConnectionId uint64 ConnectTime uint64 LastHeartbeat time.Time //上次心跳时间 HeartbeatInterval uint32 Ok bool //rpc通信返回结果标记位 }
session 中存储设备详细信息
Click to show internal directories.
Click to hide internal directories.