Documentation ¶
Index ¶
Constants ¶
View Source
const (
ContentType = "text/event-stream"
)
Variables ¶
This section is empty.
Functions ¶
func EventWriter ¶
func EventWriter(w http.ResponseWriter) (io.Writer, error)
Types ¶
type Broadcaster ¶
type Broadcaster struct {
// contains filtered or unexported fields
}
func (*Broadcaster) Remove ¶
func (br *Broadcaster) Remove(w io.Writer)
Click to show internal directories.
Click to hide internal directories.