server

package
v0.0.0-...-b9a5078 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2026 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API struct {
	DocsHandler
	GamesHandler
	PlaysHandler
}

func NewAPI

func NewAPI(spec *openapi3.T, svc mancala.Service) API

type DocsHandler

type DocsHandler struct {
	Spec *openapi3.T
}

func (DocsHandler) RenderDocs

func (s DocsHandler) RenderDocs(ctx echo.Context) error

func (DocsHandler) RenderSwagger

func (s DocsHandler) RenderSwagger(ctx echo.Context) error

type GamesHandler

type GamesHandler struct {
	GameService mancala.Service
}

GamesHandler handles the requests for the games resource.

func (GamesHandler) CreateGame

func (h GamesHandler) CreateGame(c echo.Context) error

func (GamesHandler) ShowGame

func (h GamesHandler) ShowGame(c echo.Context, id openapi.GameID) error

type PlaysHandler

type PlaysHandler struct {
	GameService mancala.Service
}

func (PlaysHandler) CreatePlay

func (h PlaysHandler) CreatePlay(c echo.Context, gameID openapi.GameID) error

Jump to

Keyboard shortcuts

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