Documentation ¶ Index ¶ func New(conn net.Conn, idleTimeout, maxTimeout time.Duration, ...) net.Conn type Conn func (c *Conn) Close() error func (c *Conn) Read(b []byte) (int, error) func (c *Conn) Write(p []byte) (int, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func New ¶ func New(conn net.Conn, idleTimeout, maxTimeout time.Duration, cancel context.CancelFunc) net.Conn Types ¶ type Conn ¶ type Conn struct { net.Conn // contains filtered or unexported fields } func (*Conn) Close ¶ func (c *Conn) Close() error func (*Conn) Read ¶ func (c *Conn) Read(b []byte) (int, error) func (*Conn) Write ¶ func (c *Conn) Write(p []byte) (int, error) Source Files ¶ View all Source files conn.go Click to show internal directories. Click to hide internal directories.