Documentation ¶
Index ¶
- func GetEvents(w http.ResponseWriter, r *http.Request, e encoder.Encoder, b *Broker)
- func NewServer(staticDirectory string) *dashingServer
- func PostDashboardEvent(r *http.Request, params martini.Params, b *Broker) (int, string)
- func PostWidgetEvent(r *http.Request, params martini.Params, b *Broker) (int, string)
- func Register(j Job)
- func Start()
- func StartWithStaticDirectory(staticDirectory string)
- type Broker
- type Event
- type Job
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PostDashboardEvent ¶
func PostWidgetEvent ¶
func StartWithStaticDirectory ¶
func StartWithStaticDirectory(staticDirectory string)
Types ¶
type Broker ¶
type Broker struct {
// contains filtered or unexported fields
}
A Broker broadcasts events to multiple clients.
Click to show internal directories.
Click to hide internal directories.