Versions in this module Expand all Collapse all v1 v1.0.0 Mar 2, 2017 Changes in this version + const HEADER + var HijackingError = "webserver doesn't support hijacking" + type ChannelSubscriber interface + ParseRequest func(*http.Request) []string + type DefaultEvent struct + Channels []string + Compress bool + ID int + Message []byte + Name string + func (e DefaultEvent) Bytes() []byte + func (e DefaultEvent) Clients(clients []client) []client + type DefaultHttpOptions struct + Cors bool + OldBrowserSupport bool + Retry int + func (h DefaultHttpOptions) Bytes(req *http.Request) []byte + type DefaultMetrics struct + func (DefaultMetrics) ClientCount(int) + func (DefaultMetrics) EventDone(e Event, _ time.Duration, durations []time.Duration) + type Event interface + Bytes func() []byte + Clients func([]client) []client + type Eventsource struct + func (es *Eventsource) Errors() chan error + func (es *Eventsource) Send(event Event) + func (es *Eventsource) ServeHTTP(res http.ResponseWriter, req *http.Request) + func (es *Eventsource) Start() + type HttpOptions interface + Bytes func(*http.Request) []byte + type Metrics interface + ClientCount func(int) + EventDone func(Event, time.Duration, []time.Duration) + type NoChannels struct + func (n NoChannels) ParseRequest(req *http.Request) []string + type NoopMetrics struct + func (NoopMetrics) ClientCount(int) + func (NoopMetrics) EventDone(Event, time.Duration, []time.Duration) + type QueryStringChannels struct + Name string + func (n QueryStringChannels) ParseRequest(req *http.Request) []string