Documentation ¶
Index ¶
Constants ¶
View Source
const ContentType = "text/event-stream"
Variables ¶
View Source
var EOFMessage = NewMessage("", "error", "eof")
View Source
var NewEventStreamReader = sse.NewEventStreamReader
Functions ¶
func Wrap ¶
func Wrap(fn http.HandlerFunc) http.HandlerFunc
Types ¶
type Message ¶
func NewErrMessage ¶
func NewMessage ¶
func TransferMessage ¶
func (*Message) Send ¶
func (m *Message) Send(w http.ResponseWriter)
Click to show internal directories.
Click to hide internal directories.