Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Hub ¶
type Hub struct {
// contains filtered or unexported fields
}
Hub manages websocket clients and broadcasts events.
func (*Hub) Handle ¶
func (h *Hub) Handle(w http.ResponseWriter, r *http.Request)
Handle upgrades the connection and keeps it registered until closed.
func (*Hub) PublishEvent ¶
PublishEvent broadcasts a history event and derived updates.
type Providers ¶
type Providers struct {
Heartbeats func() []service.HeartbeatSummary
Receivers func() []service.ReceiverSummary
History func() []history.Event
HeartbeatByID func(string) (service.HeartbeatSummary, bool)
ReceiverByKey func(string, string, string) (service.ReceiverSummary, bool)
}
Providers supply snapshot data for websocket clients.
Click to show internal directories.
Click to hide internal directories.