Documentation
¶
Index ¶
- Constants
- func Attack(from int, to int)
- func Clear(team int)
- func ClearAll()
- func EasterEgg()
- func InitAsteroid(function func() Greet)
- func Rank()
- func Round(roundNumber int)
- func ServeWebSocket(c *gin.Context)
- func Status(team int, statusString string)
- func Time(time int)
- type Greet
- type Hub
- type Team
Constants ¶
View Source
const ( INIT = "init" ATTACK = "attack" RANK = "rank" STATUS = "status" ROUND = "round" EGG = "easterEgg" TIME = "time" CLEAR = "clear" CLEAR_ALL = "clearAll" )
Variables ¶
This section is empty.
Functions ¶
func InitAsteroid ¶
func InitAsteroid(function func() Greet)
InitAsteroid is used to init the asteroid. A function will be given to get the team rank data.
func ServeWebSocket ¶
ServeWebSocket handles websocket requests from the peer.
Types ¶
Click to show internal directories.
Click to hide internal directories.