Documentation ¶
Overview ¶
Package connctx wraps net.Conn using context.Context.
Deprecated: use netctx instead.
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 ¶
ReadWriter is a composite of ReadWriter.
Click to show internal directories.
Click to hide internal directories.