Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppController ¶
type AppController struct {
// contains filtered or unexported fields
}
AppController handles the welcome screen that allows user to pick a technology and username.
func (*AppController) Get ¶
func (this *AppController) Get()
Get implemented Get() method for AppController.
func (*AppController) Join ¶
func (this *AppController) Join()
Join method handles POST requests for AppController.
type SocketInfo ¶
带用户信息的websocket
type UnSocketId ¶
type UnSocketId struct {
SocketId uint32
}
type WebSocketController ¶
type WebSocketController struct {
// contains filtered or unexported fields
}
WebSocketController handles WebSocket requests.
type WebSocketListController ¶
type WebSocketListController struct { // Channel for new join users. SocketChan chan SocketInfo // Channel for exit users. UnSocketChan chan UnSocketId // Send events here to publish them. MsgList chan (GpPacket.IM_rec) // Long polling waiting list. ActiveSocketList *list.List beego.Controller }
var GlobaWebSocketListManager *WebSocketListController
func (*WebSocketListController) IsExistSocketById ¶
func (this *WebSocketListController) IsExistSocketById(SocketId uint32) bool
Click to show internal directories.
Click to hide internal directories.