Documentation
¶
Overview ¶
Package connctx wraps net.Conn using context.Context.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosing = errors.New("use of closed network connection")
ErrClosing is returned on Write to closed connection.
Functions ¶
Types ¶
type ConnCtx ¶
type ConnCtx interface {
Reader
Writer
io.Closer
LocalAddr() net.Addr
RemoteAddr() net.Addr
Conn() net.Conn
}
ConnCtx is a wrapper of net.Conn using context.Context.
type ReadWriter ¶ added in v0.11.1
ReadWriter is a composite of ReadWriter.
Click to show internal directories.
Click to hide internal directories.