Versions in this module Expand all Collapse all v0 v0.2.0 Nov 30, 2013 Changes in this version + var Events = make(chan interface{}, 1000) + func PostConnect(cid ConnId, from string) + func PostData(cid ConnId, kind EventKind, stamp time.Time, payload []byte) + func PostDisconnect(cid ConnId, dir EventKind) + func PostGlobal(desc string) + func PostGlobalf(s string, a ...interface{}) + func PostHttp(cid ConnId, kind EventKind, stamp time.Time, payload []byte, start []byte, ...) + type ConnId int + type ConnectEvent struct + From string + type DataEvent struct + Payload []byte + type DisconnectEvent struct + Initiator EventKind + type Event struct + Cid ConnId + Kind EventKind + Stamp time.Time + type EventKind byte + const Connect + const Disconnect + const Global + const Receive + const Send + func (k EventKind) String() string + type HttpEvent struct + Body []byte + Headers textproto.MIMEHeader + Start []byte + type MessageEvent struct + Message string