Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventSourceServer ¶
type EventSourceServer struct { // Events are pushed to this channel by the main events-gathering routine Notifier chan []byte // contains filtered or unexported fields }
A Broker holds open client connections, listens for incoming events on its Notifier channel and broadcast event data to all registered connections
func NewEventSourceServer ¶
func NewEventSourceServer() (server *EventSourceServer)
func (*EventSourceServer) ServeHTTP ¶
func (server *EventSourceServer) ServeHTTP(rw http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.