Documentation ¶
Index ¶
- Constants
- func NewCreateGameHandler(logger logrus.FieldLogger, groupManager *connections.ConnectionGroupManager) http.Handler
- func NewDeleteGameHandler(logger logrus.FieldLogger, groupManager *connections.ConnectionGroupManager) http.Handler
- func NewGameWebSocketHandler(logger logrus.FieldLogger, groupManager *connections.ConnectionGroupManager) http.Handler
- func NewGetGameHandler(logger logrus.FieldLogger, groupManager *connections.ConnectionGroupManager) http.Handler
- func NewGetGamesHandler(logger logrus.FieldLogger, groupManager *connections.ConnectionGroupManager) http.Handler
- type ErrCreateGameHandler
- type ErrDeleteGameHandler
- type ErrGameWebSocketHandler
- type ErrGetGameHandler
- type ErrGetGamesHandler
Constants ¶
View Source
const MethodCreateGame = http.MethodPost
View Source
const MethodDeleteGame = http.MethodDelete
View Source
const MethodGame = http.MethodGet
View Source
const MethodGetGame = http.MethodGet
View Source
const MethodGetGames = http.MethodGet
View Source
const URLRouteCreateGame = "/games"
View Source
const URLRouteDeleteGameByID = "/games/{id}"
View Source
const URLRouteGameWebSocketByID = "/games/{id}/ws"
View Source
const URLRouteGetGameByID = "/games/{id}"
View Source
const URLRouteGetGames = "/games"
Variables ¶
This section is empty.
Functions ¶
func NewCreateGameHandler ¶
func NewCreateGameHandler(logger logrus.FieldLogger, groupManager *connections.ConnectionGroupManager) http.Handler
func NewDeleteGameHandler ¶
func NewDeleteGameHandler(logger logrus.FieldLogger, groupManager *connections.ConnectionGroupManager) http.Handler
func NewGameWebSocketHandler ¶
func NewGameWebSocketHandler(logger logrus.FieldLogger, groupManager *connections.ConnectionGroupManager) http.Handler
func NewGetGameHandler ¶
func NewGetGameHandler(logger logrus.FieldLogger, groupManager *connections.ConnectionGroupManager) http.Handler
func NewGetGamesHandler ¶
func NewGetGamesHandler(logger logrus.FieldLogger, groupManager *connections.ConnectionGroupManager) http.Handler
Types ¶
type ErrCreateGameHandler ¶
type ErrCreateGameHandler string
func (ErrCreateGameHandler) Error ¶
func (e ErrCreateGameHandler) Error() string
type ErrDeleteGameHandler ¶
type ErrDeleteGameHandler string
func (ErrDeleteGameHandler) Error ¶
func (e ErrDeleteGameHandler) Error() string
type ErrGameWebSocketHandler ¶
type ErrGameWebSocketHandler string
func (ErrGameWebSocketHandler) Error ¶
func (e ErrGameWebSocketHandler) Error() string
type ErrGetGameHandler ¶
type ErrGetGameHandler string
func (ErrGetGameHandler) Error ¶
func (e ErrGetGameHandler) Error() string
type ErrGetGamesHandler ¶
type ErrGetGamesHandler string
func (ErrGetGamesHandler) Error ¶
func (e ErrGetGamesHandler) Error() string
Click to show internal directories.
Click to hide internal directories.