package
0.0.0-20240712110457-7d2355165523
Repository: https://github.com/pablocrivella/mancala.git
Documentation: pkg.go.dev
# Functions
GetSwagger returns the Swagger specification corresponding to the generated code in this file.
Constructs a synthetic filesystem for resolving external references when loading openapi specifications.
RegisterHandlers adds each server route to the EchoRouter.
Registers handlers, and prepends BaseURL to the paths, so that the paths can be served under a prefix.
# Structs
BoardSide A side of the board.
CreateGameJSONBody defines parameters for CreateGame.
CreatePlayJSONBody defines parameters for CreatePlay.
Error defines model for Error.
Game defines model for Game.
NewGameBody defines model for NewGameBody.
NewPlayBody defines model for NewPlayBody.
PlayCreated defines model for PlayCreated.
Player defines model for Player.
ServerInterfaceWrapper converts echo contexts to parameters.
# Interfaces
This is a simple interface which specifies echo.Route addition functions which are present on both echo.Echo and echo.Group, since we want to allow using either of them for path registration.
ServerInterface represents all server handlers.
# Type aliases
BadRequest defines model for BadRequest.
CreateGameJSONRequestBody defines body for CreateGame for application/json ContentType.
CreatePlayJSONRequestBody defines body for CreatePlay for application/json ContentType.
GameID defines model for GameID.
InternalServerError defines model for InternalServerError.
NotFound defines model for NotFound.
Result The result of the game.
Turn The turn that needs to play next.