Documentation ¶
Index ¶
Constants ¶
View Source
const ( IM_EVENT_JOIN = iota IM_EVENT_BROADCAST_JOIN IM_EVENT_LEAVE IM_EVENT_BROADCAST_LEAVE IM_EVENT_MESSAGE IM_EVENT_BROADCAST_MESSAGE IM_EVENT_HEART IM_EVENT_BROADCAST_HEART )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IM_protocol ¶
type IM_protocol struct { Type EventType // JOIN, LEAVE, MESSAGE Msg string SocketId uint32 Users IM_protocol_user Timestamp int // Unix timestamp (secs) }
用户交互协议
func GetEvents ¶
func GetEvents(lastReceived int) []IM_protocol
GetEvents returns all events after lastReceived.
Click to show internal directories.
Click to hide internal directories.