eventsource

package module
v0.0.0-...-9cd55e3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 12, 2014 License: MIT Imports: 1 Imported by: 3

README

EventSource for Go Build Status

This library is an initial implementation of Server Sent Events(SSE)/EventSource for Go. It is patterned after the Go Websockets library. It is very much a work in progress. Pull requests welcome.

Example app

Found in the examples directory. You can run it from the examples directory with:

go run main.go

Development

Please write tests for any code that you add. To run existing tests:

  bin/test

References

For more information about SSE/EventSource, see:

http://en.wikipedia.org/wiki/Server-sent_events

http://www.html5rocks.com/en/tutorials/eventsource/basics/

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	Req *http.Request

	http.Flusher
	http.CloseNotifier
	// contains filtered or unexported fields
}

func (Conn) Write

func (c Conn) Write(msg []byte)

type Handler

type Handler func(*Conn)

func (Handler) ServeHTTP

func (h Handler) ServeHTTP(w http.ResponseWriter, req *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL