Documentation
¶
Index ¶
- func Bind(cid int, uid string)
- func BroadCast(roomId int, msg WsMessage, exclude int)
- func CanStartGame(rid int) bool
- func CreateRoom(seatSum int, gameSum int) *data.Room
- func EnterRoom(pUser *data.User, pRoom *data.Room, seat int)
- func GuessRight(rid int, guesserSeat int)
- func IsOnlie(uid string) bool
- func LeaveUser(rid int, uid string)
- func OnClientConnect(c echo.Context) error
- func OverGame(rid int)
- func Send(cid int, data WsMessage)
- func StartGame(rid int)
- type Client
- type ErrorData
- type Response
- type Token
- type UserData
- type WsMessage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CanStartGame ¶
func GuessRight ¶
func OnClientConnect ¶
Types ¶
type Response ¶
type Response struct {
Data interface{} `json:"data"`
Error interface{} `json:"error"`
}
Click to show internal directories.
Click to hide internal directories.