jsonapi

package
v0.0.0-...-459490d Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CrosswordGameAPI

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

func NewCrosswordGameAPI

func NewCrosswordGameAPI(
	gameManager *game.Manager,
	lobbyManager *lobby.Manager,
	playerManager *player.Manager,
) *CrosswordGameAPI

func (*CrosswordGameAPI) AttachGameToLobby

func (c *CrosswordGameAPI) AttachGameToLobby(w http.ResponseWriter, r *http.Request)

func (*CrosswordGameAPI) AttachToRouter

func (c *CrosswordGameAPI) AttachToRouter(router *mux.Router, baseLogger *zap.SugaredLogger, schemaPath string) error

func (*CrosswordGameAPI) CreateGame

func (c *CrosswordGameAPI) CreateGame(w http.ResponseWriter, r *http.Request)

func (*CrosswordGameAPI) CreateLobby

func (c *CrosswordGameAPI) CreateLobby(w http.ResponseWriter, r *http.Request)

func (*CrosswordGameAPI) DetachGameFromLobby

func (c *CrosswordGameAPI) DetachGameFromLobby(w http.ResponseWriter, r *http.Request)

func (*CrosswordGameAPI) GetGameState

func (c *CrosswordGameAPI) GetGameState(w http.ResponseWriter, r *http.Request)

func (*CrosswordGameAPI) GetLobbyForPlayer

func (c *CrosswordGameAPI) GetLobbyForPlayer(w http.ResponseWriter, r *http.Request)

func (*CrosswordGameAPI) GetLobbyState

func (c *CrosswordGameAPI) GetLobbyState(w http.ResponseWriter, r *http.Request)

func (*CrosswordGameAPI) GetPlayerScore

func (c *CrosswordGameAPI) GetPlayerScore(w http.ResponseWriter, r *http.Request)

func (*CrosswordGameAPI) GetPlayerState

func (c *CrosswordGameAPI) GetPlayerState(w http.ResponseWriter, r *http.Request)

func (*CrosswordGameAPI) Healthcheck

func (c *CrosswordGameAPI) Healthcheck(w http.ResponseWriter, r *http.Request)

func (*CrosswordGameAPI) JoinPlayerToLobby

func (c *CrosswordGameAPI) JoinPlayerToLobby(w http.ResponseWriter, r *http.Request)

func (*CrosswordGameAPI) RemovePlayerFromLobby

func (c *CrosswordGameAPI) RemovePlayerFromLobby(w http.ResponseWriter, r *http.Request)

func (*CrosswordGameAPI) SubmitAnnouncement

func (c *CrosswordGameAPI) SubmitAnnouncement(w http.ResponseWriter, r *http.Request)

func (*CrosswordGameAPI) SubmitPlacement

func (c *CrosswordGameAPI) SubmitPlacement(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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