handlers

package
v0.0.0-...-d26b62e Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Game

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

func NewGame

func NewGame(lobbyInstance *lobby.Lobby, sdk *sdk.SDK, stopShutdown chan interface{}) *Game

func (*Game) Health

func (h *Game) Health(rw http.ResponseWriter, r *http.Request)

func (*Game) Join

func (h *Game) Join(rw http.ResponseWriter, r *http.Request)

type PlayerConn

type PlayerConn struct {
	Status byte
	Out    chan []byte
	In     chan *models.Event
	Close  chan bool

	Closed bool
	// contains filtered or unexported fields
}

func NewPlayerConn

func NewPlayerConn(conn *websocket.Conn) *PlayerConn

func (*PlayerConn) CloseConnection

func (p *PlayerConn) CloseConnection(unexpected bool)

Jump to

Keyboard shortcuts

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