Documentation ¶
Index ¶
Constants ¶
View Source
const ( EVENT_USER_CONNECTED = iota EVENT_USER_DISCONNECTED EVENT_ONLINE_USERS_LIST EVENT_USER_REPLY EVENT_NEW_MESSAGE EVENT_NEW_TIMELINE_EVENT EVENT_FRIEND_REQUEST )
Variables ¶
View Source
var (
EventsFlow = make(chan *ControlEvent, 200)
)
Functions ¶
func EventsDispatcher ¶
func EventsDispatcher()
Types ¶
type ControlEvent ¶
type ControlEvent struct { EvType uint8 Info interface{} Reply interface{} Listener chan interface{} }
type EventFriendRequest ¶
type EventNewMessage ¶
type EventNewTimelineStatus ¶
type EventNewTimelineStatus struct { BaseEvent protocol.TimelineMessage }
type EventOnlineUsersList ¶
type EventOnlineUsersList struct { BaseEvent Users []protocol.JSUserInfo }
type EventUserConnected ¶
type EventUserConnected struct { BaseEvent protocol.JSUserInfo }
type EventUserDisconnected ¶
type EventUserDisconnected struct { BaseEvent protocol.JSUserInfo }
type InternalEventNewMessage ¶
Click to show internal directories.
Click to hide internal directories.