httpws

package
v0.0.0-...-32bdb9f Latest Latest
Warning

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

Go to latest
Published: May 2, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleControllerConn

func HandleControllerConn(svc clong.Service, up websocket.Upgrader) http.HandlerFunc

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

func HandleScreenConn(svc clong.Service, up websocket.Upgrader) http.HandlerFunc

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.

Jump to

Keyboard shortcuts

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