Documentation ¶
Index ¶
- type Conn
- func (c *Conn) Close() error
- func (c *Conn) CloseRead() error
- func (c *Conn) CloseWrite() error
- func (c *Conn) Read(b []byte) (int, error)
- func (c *Conn) SetInBytesCounter(u *atomic.Uint64)
- func (c *Conn) SetOutBytesCounter(u *atomic.Uint64)
- func (c *Conn) SetReadTimeout(timeout time.Duration)
- func (c *Conn) SetStats(stats *Stats)
- func (c *Conn) SetWriteTimeout(timeout time.Duration)
- func (c *Conn) Write(b []byte) (int, error)
- type Stats
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn is a net connection wrapper.
func (*Conn) CloseWrite ¶
CloseWrite shuts down the writing side of the connection if support.
func (*Conn) SetInBytesCounter ¶
SetInBytesCounter set the input bytes counter.
func (*Conn) SetOutBytesCounter ¶
SetOutBytesCounter set the output bytes counter.
func (*Conn) SetReadTimeout ¶
SetReadTimeout sets the read timeout.
func (*Conn) SetWriteTimeout ¶
SetWriteTimeout sets the write timeout.
Click to show internal directories.
Click to hide internal directories.