handlers

package
v4.0.0-rc3+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2018 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const MethodBroadcast = http.MethodPost
View Source
const MethodCreateGame = http.MethodPost
View Source
const MethodDeleteGame = http.MethodDelete
View Source
const MethodGame = http.MethodGet
View Source
const MethodGetCapacity = http.MethodGet
View Source
const MethodGetGame = http.MethodGet
View Source
const MethodGetGames = http.MethodGet
View Source
const MethodGetInfo = http.MethodGet
View Source
const MethodWellcome = http.MethodGet
View Source
const URLRouteBroadcast = "/games/{id}/broadcast"
View Source
const URLRouteCreateGame = "/games"
View Source
const URLRouteDeleteGameByID = "/games/{id}"
View Source
const URLRouteGameWebSocketByID = "/games/{id}"
View Source
const URLRouteGetCapacity = "/capacity"
View Source
const URLRouteGetGameByID = "/games/{id}"
View Source
const URLRouteGetGames = "/games"
View Source
const URLRouteGetInfo = "/info"
View Source
const URLRouteWellcome = "/"

Variables

This section is empty.

Functions

func NewBroadcastHandler

func NewBroadcastHandler(logger logrus.FieldLogger, groupManager *connections.ConnectionGroupManager) http.Handler

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 NewGetCapacityHandler

func NewGetCapacityHandler(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

func NewGetInfoHandler

func NewGetInfoHandler(logger logrus.FieldLogger, author, license, version, build string) http.Handler

func NewNotFoundHandler

func NewNotFoundHandler(logger logrus.FieldLogger) http.Handler

func NewWellcomeHandler

func NewWellcomeHandler(logger logrus.FieldLogger) http.Handler

Types

type ErrBroadcastHandler

type ErrBroadcastHandler string

func (ErrBroadcastHandler) Error

func (e ErrBroadcastHandler) Error() string

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 ErrGetCapacityHandler

type ErrGetCapacityHandler string

func (ErrGetCapacityHandler) Error

func (e ErrGetCapacityHandler) 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

type ErrGetInfoHandler

type ErrGetInfoHandler string

func (ErrGetInfoHandler) Error

func (e ErrGetInfoHandler) Error() string

type ErrNotFoundHandler

type ErrNotFoundHandler string

func (ErrNotFoundHandler) Error

func (e ErrNotFoundHandler) Error() string

type ErrWellcomeHandler

type ErrWellcomeHandler string

func (ErrWellcomeHandler) Error

func (e ErrWellcomeHandler) Error() string

Jump to

Keyboard shortcuts

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