Versions in this module Expand all Collapse all v6 v6.2.5 Nov 13, 2019 Changes in this version + func Serve(events Events, addr ...string) error + type Action int + const Close + const Detach + const None + const Shutdown + type Conn interface + AddrIndex func() int + Context func() interface{} + LocalAddr func() net.Addr + RemoteAddr func() net.Addr + SetContext func(interface{}) + Wake func() + type Events struct + Closed func(c Conn, err error) (action Action) + Data func(c Conn, in []byte) (out []byte, action Action) + Detached func(c Conn, rwc io.ReadWriteCloser) (action Action) + LoadBalance LoadBalance + NumLoops int + Opened func(c Conn) (out []byte, opts Options, action Action) + PreWrite func() + Serving func(server Server) (action Action) + Tick func() (delay time.Duration, action Action) + type InputStream struct + func (is *InputStream) Begin(packet []byte) (data []byte) + func (is *InputStream) End(data []byte) + type LoadBalance int + const LeastConnections + const Random + const RoundRobin + type Options struct + ReuseInputBuffer bool + TCPKeepAlive time.Duration + type Server struct + Addrs []net.Addr + NumLoops int