Documentation ¶
Index ¶
- Variables
- 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
- type ConnectEvent
- type DataEvent
- type DisconnectEvent
- type Event
- type EventKind
- type HttpEvent
- type MessageEvent
Constants ¶
This section is empty.
Variables ¶
View Source
var Events = make(chan interface{}, 1000)
All events from all connections go here
Functions ¶
func PostConnect ¶
func PostDisconnect ¶
dir specifies which partner of the connection initiated the close.
func PostGlobal ¶
func PostGlobal(desc string)
func PostGlobalf ¶
func PostGlobalf(s string, a ...interface{})
Types ¶
type ConnectEvent ¶
type DisconnectEvent ¶
type HttpEvent ¶
type HttpEvent struct { DataEvent Start []byte Headers textproto.MIMEHeader Body []byte }
HTTP protocol event
type MessageEvent ¶
Click to show internal directories.
Click to hide internal directories.