package
Version:
v0.0.0-...-377890d
Opens a new window with list of versions in this module.
Published: Sep 30, 2020
License: GPL-3.0
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Hub manages subscribed clients and message broadcast
New returns a broadcasting hub
func (h *Hub) BroadcastScript(interpreter, script string)
BroadcastScript starts a script and broadcast its output
Control starts and stops script from running
Run starts hub client manager and messages broadcasting
ServeHTTP handles upgrading and maintaining websocket connection with client
type UserInfo struct {
Password string `json:"password"`
Role string `json:"role"`
}
UserInfo stores role and password
WSClient stores the queued messages and websocket information
Source Files
¶
Click to show internal directories.
Click to hide internal directories.