Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Message ¶
type Message struct { UID int64 `json:"uid"` // 用户ID Topic string `json:"topic"` // 主题名称 Options map[string]interface{} `json:"options"` // 额外参数 Payload interface{} `json:"payload"` // 自定义数据 Timestamp int64 `json:"timestamp"` // 秒时间戳 }
func NewMessage ¶
func (*Message) SetOptions ¶
func (*Message) SetPayload ¶
func (*Message) SetTimestamp ¶
Click to show internal directories.
Click to hide internal directories.