Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NatsSubscription ¶
func NatsSubscription(handle HandleFunc) func(msg *nats.Msg)
Types ¶
type DataUpdateInfo ¶
type DeviceCore ¶ added in v0.3.0
type EventHandle ¶
func GetEventMsg ¶
func GetEventMsg(data []byte) EventHandle
type GatewayUpdateInfo ¶ added in v0.3.0
type GatewayUpdateInfo struct { GatewayProductID string GatewayDeviceName string Status int32 //拓扑关系变化状态。* 2:解绑* 1:绑定 Devices []*DeviceCore //子设备列表 }
type MsgHead ¶
type MsgHead struct { Trace []byte `json:"trace"` //追踪tid Timestamp int64 `json:"timestamp,string"` //发送时毫秒级时间戳 Data []byte `json:"data"` //传送的内容 }
MsgHead 消息队列的头 todo 后续考虑用proto重构这个头
type MySpanContextConfig ¶
Click to show internal directories.
Click to hide internal directories.