handlers

package
v3.0.0-rc+incompatible Latest Latest
Warning

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

Go to latest
Published: May 19, 2018 License: MIT Imports: 7 Imported by: 3

Documentation

Index

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

Jump to

Keyboard shortcuts

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