Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRESPPrefix ¶
IsRESPPrefix reports whether is resp prefix.
func NormalizeServeError ¶
NormalizeServeError normalizes a serve error.
func Serve ¶
func Serve(ctx context.Context, listener net.Listener, httpListener *Listener, onRESPConn func(net.Conn), onHTTPConn func(net.Conn), tlsConfig *tls.Config) error
Serve classifies connections concurrently with a bounded setup budget. Callbacks take ownership of their connections and must dispatch promptly.
Types ¶
type BufferedConn ¶
func (*BufferedConn) ConnectionState ¶
func (c *BufferedConn) ConnectionState() tls.ConnectionState
ConnectionState handles a connection state.
type Listener ¶
type Listener struct {
// contains filtered or unexported fields
}
func NewListener ¶
NewListener creates a new listener.
Click to show internal directories.
Click to hide internal directories.