Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { // Connected is used to indicate a successful connection. Connected chan bool // Disconnected is used to indicate a server disconnect. Disconnected chan bool // Incoming has messages sent from server to client. Incoming chan []byte // contains filtered or unexported fields }
Client connects to a server via Websockets.
type Server ¶
type Server struct { Addr string Username, Password string Logger *log.Logger // contains filtered or unexported fields }
Server gathers information via plugins and sends it to registered clients via websockets.
func NewServer ¶
func NewServer() *Server
NewServer creates a new Metronome server. Use Start to start it up.
Click to show internal directories.
Click to hide internal directories.