Documentation ¶
Index ¶
- func DrainBuffer(rw *bufio.ReadWriter, conn net.Conn) net.Conn
- func IsSingleReader(r io.Reader) bool
- func Listen(logger *zerolog.Logger, network, address string) (net.Listener, error)
- func MultiReader(r1, r2 io.Reader) io.Reader
- func StripBuffer(r *bufio.Reader) io.Reader
- func UnwrapReader(r io.Reader) io.Reader
- func Wrap(logger *zerolog.Logger, ln net.Listener) net.Listener
- type Conn
- type Listener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DrainBuffer ¶
func IsSingleReader ¶
func Listen ¶
Listen returns a *compat.Listener wrapping the listener returned by a call to net.Listen(network, address)
func StripBuffer ¶
StripBuffer returns an io.Reader that returns io.EOF after all buffered content in r is read.
Types ¶
Click to show internal directories.
Click to hide internal directories.