GpManager

package
v0.0.0-...-d28e09f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 11, 2024 License: MIT Imports: 5 Imported by: 0

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.

func (*AppController) Prepare

func (this *AppController) Prepare()

Prepare implemented Prepare() method for baseController. It's used for language option check and setting.

type SocketId

type SocketId struct {
	SocketId uint32
}

type SocketInfo

type SocketInfo struct {
	SocketId uint32
	User     GpPacket.IM_rec
	Conn     *websocket.Conn
}

带用户信息的websocket

type UnSocketId

type UnSocketId struct {
	SocketId uint32
}

type WebSocketController

type WebSocketController struct {
	// contains filtered or unexported fields
}

WebSocketController handles WebSocket requests.

func (*WebSocketController) Prepare

func (this *WebSocketController) Prepare()

Prepare implemented Prepare() method for baseController. It's used for language option check and setting.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL