package
Version:
v1.0.5
Opens a new window with list of versions in this module.
Published: Nov 20, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 24
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
New creates a new API handler
API exposes endpoints for the webapp to perform HTTP RESTFull actions
Client is a middleman between the websocket connection and the hub.
type Error interface {
error
Status() int
}
Error is an error occurring in an API endpoint
NewError returns a new error
Hub maintains the set of active clients and broadcasts messages to the
clients.
func (h *Hub) Broadcast(msg []byte)
Broadcast sends a message to all connected clients
Register registers a new client in the hub
Source Files
¶
Click to show internal directories.
Click to hide internal directories.