handler

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2021 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeleteGame

func DeleteGame(c *gin.Context)

DeleteGame deletes a specific game

func DeletePlayerFromGame

func DeletePlayerFromGame(c *gin.Context)

DeletePlayerFromGame deletes a player from a specific game

func GetAllBoards

func GetAllBoards(c *gin.Context)

GetAllBoards returns all registered boards

func GetAllGames

func GetAllGames(c *gin.Context)

GetAllGames simply returns all games

func GetBoard

func GetBoard(c *gin.Context)

GetBoard returns all boards of a specific type

func GetGame

func GetGame(c *gin.Context)

GetGame gets a specific game

func PostGame

func PostGame(c *gin.Context)

PostGame inserts a game into the registry

func PostPlayerToGame

func PostPlayerToGame(c *gin.Context)

PostPlayerToGame adds a player to a specific game

func PutPlayerToGame

func PutPlayerToGame(c *gin.Context)

PutPlayerToGame updates a player from a specific game

func PutState

func PutState(c *gin.Context)

PutState changes the state of a game

func SetupBoardConfig

func SetupBoardConfig(c *config.BoardConfig)

func SetupBoardConfigAuto

func SetupBoardConfigAuto()

func SetupProvider

func SetupProvider()

Types

This section is empty.

Jump to

Keyboard shortcuts

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