Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type GetConversationMembers ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
var ClientHub *Hub
func (*Hub) PushToExchange ¶
PushToExchange 将消费推送到消息交换器
type Message ¶
type Message struct { From string `json:"from,omitempty"` //发送者ID To string `json:"to,omitempty"` //接收者ID Event exchange.Event `json:"event,omitempty"` //事件类型 Data exchange.Fields `json:"data,required"` //消息内容 MsgID string `json:"msg_id,required"` //消息ID SendAt int64 `json:"send_at,required"` //发送时间 ConversationID string `json:"conversation_id,omitempty"` //会话ID }
Click to show internal directories.
Click to hide internal directories.