Versions in this module Expand all Collapse all v0 v0.1.7 Dec 5, 2022 Changes in this version + const TCP + const WEBSOCKET + type Acceptor struct + func (acceptor *Acceptor) Schema() Schema + func (acceptor *Acceptor) Shutdown() + type Instance interface + Listen func(onAccept func(conn net.Conn)) error + Schema func() Schema + Shutdown func() + func NewAcceptor(schema Schema, options Options) Instance + type Options struct + Core int + Keepalive bool + LengthOffset int + ReadBufferSize int + ReadDeadline time.Duration + WriteBufferSize int + WriteDeadline time.Duration + func DefaultOptions() Options + type Schema struct + Addr string + Protocol string + func NewSchema(protocol string, addr string) Schema + func NewTCPSchema(addr string) Schema + func NewWebSocketSchema(addr string) Schema + func (schema Schema) String() string + type TCPAcceptor struct + func (acceptor *TCPAcceptor) Listen(onAccept func(conn net.Conn)) (err error) + type WebsocketAcceptor struct + func (acceptor *WebsocketAcceptor) Listen(onAccept func(conn net.Conn)) (err error)