package
module
Version:
v0.0.0-...-8a21f24
Opens a new window with list of versions in this module.
Published: Nov 17, 2014
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func NewServer(staticDirectory string) *dashingServer
Register a job to be kicked off upon starting the server.
Start all jobs and listen to requests.
func StartWithStaticDirectory(staticDirectory string)
A Broker broadcasts events to multiple clients.
NewBroker creates a Broker instance.
Start managing client connections and event broadcasts.
An Event contains the widget ID, a body of data,
and an optional target (only "dashboard" for now).
type Job interface {
Work(send chan *Event)
}
A Job does periodic work and sends events to a channel.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.