handlers

package
v4.2.2+incompatible Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2019 License: MIT Imports: 12 Imported by: 3

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 MethodGetObjects = http.MethodGet
View Source
const MethodPing = http.MethodGet
View Source
const MethodWelcome = 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 URLRouteGetObjects = "/games/{id}/objects"
View Source
const URLRoutePing = "/ping"
View Source
const URLRouteWelcome = "/"

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 NewGetObjectsHandler

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

func NewNotFoundHandler

func NewNotFoundHandler(logger logrus.FieldLogger) http.Handler

func NewPingHandler

func NewPingHandler(logger logrus.FieldLogger) http.Handler

func NewWelcomeHandler

func NewWelcomeHandler(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 ErrGetObjectsHandler

type ErrGetObjectsHandler string

func (ErrGetObjectsHandler) Error

func (e ErrGetObjectsHandler) Error() string

type ErrNotFoundHandler

type ErrNotFoundHandler string

func (ErrNotFoundHandler) Error

func (e ErrNotFoundHandler) Error() string

type ErrPingHandler

type ErrPingHandler string

func (ErrPingHandler) Error

func (e ErrPingHandler) Error() string

type ErrWelcomeHandler

type ErrWelcomeHandler string

func (ErrWelcomeHandler) Error

func (e ErrWelcomeHandler) Error() string

Jump to

Keyboard shortcuts

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