package
0.0.0-20241005054043-280ebc17731b
Repository: https://github.com/release-argus/argus.git
Documentation: pkg.go.dev
# Functions
ConstantTimeCompare returns true if the two slices, x and y, have equal contents and false otherwise.
LogInit for this package.
NewAPI will create a new API with the provided config.
NewHub will create a new Hub.
ServeWs handles websocket requests from the peer.
# Structs
AnnounceMSG is a minimal JSON struct to check whether the incoming message is valid.
API is the API to use for the webserver.
Client is a middleman between the websocket connection and the hub.
Hub maintains the set of active clients and broadcasts messages to those clients.
No description provided by the author
No description provided by the author