Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { Name string `json:"name"` Data interface{} `json:"data"` Reply bool `json:"reply"` }
Event represents an event either received from or sent to a client.
type Server ¶
type Server struct { Addr string OnConnect func(c net.Conn) OnDisconnect func(c net.Conn) OnEvent func(c net.Conn, e Event) // ErrorLog specifies an optional log function for errors. If not set, // errors are not reported. ErrorLog func(error) // contains filtered or unexported fields }
Server provides a bi-directional event stream with clients on top of named pipes.
Click to show internal directories.
Click to hide internal directories.