Documentation ¶
Index ¶
- func HandleControllerConn(svc clong.Service, up websocket.Upgrader) http.HandlerFunc
- func HandleDeleteScores(scores clong.ScoreStore) http.HandlerFunc
- func HandleFindScores(scores clong.ScoreStore) http.HandlerFunc
- func HandleScoreboardView() http.HandlerFunc
- func HandleScreenConn(svc clong.Service, up websocket.Upgrader) http.HandlerFunc
- func HandleScreenView() http.HandlerFunc
- type UnauthorizedError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleControllerConn ¶
HandleControllerConn handles a WebSocket connection from a controller.
func HandleDeleteScores ¶
func HandleDeleteScores(scores clong.ScoreStore) http.HandlerFunc
HandleDeleteScores deletes all scores and resets the scoreboard.
func HandleFindScores ¶
func HandleFindScores(scores clong.ScoreStore) http.HandlerFunc
HandleFindScores returns all scores as JSON.
func HandleScoreboardView ¶
func HandleScoreboardView() http.HandlerFunc
HandleScoreboardView returns the screen HTML page.
func HandleScreenConn ¶
HandleScreenConn handles a WebSocket connection coming from a screen.
func HandleScreenView ¶
func HandleScreenView() http.HandlerFunc
HandleScreenView returns the screen HTML page.
Types ¶
type UnauthorizedError ¶
type UnauthorizedError struct {
// contains filtered or unexported fields
}
UnauthorizedError occurs when a user does something they are not authorized for.
func NewUnauthorizedError ¶
func NewUnauthorizedError(msg string) *UnauthorizedError
NewUnauthorizedError creates a new unauthorized-error.
func (*UnauthorizedError) Error ¶
func (e *UnauthorizedError) Error() string
Error returns the error string.
Click to show internal directories.
Click to hide internal directories.