Documentation ¶ Index ¶ type Conn func (c *Conn) Read(b []byte) (n int, err error) func (c *Conn) Write(b []byte) (n int, err error) type Listener func NewListener(l net.Listener, rxBandwidth, txBandwidth int64) *Listener func (l *Listener) Accept() (net.Conn, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Conn ¶ type Conn struct { net.Conn // contains filtered or unexported fields } func (*Conn) Read ¶ func (c *Conn) Read(b []byte) (n int, err error) func (*Conn) Write ¶ func (c *Conn) Write(b []byte) (n int, err error) type Listener ¶ type Listener struct { net.Listener // contains filtered or unexported fields } func NewListener ¶ func NewListener(l net.Listener, rxBandwidth, txBandwidth int64) *Listener func (*Listener) Accept ¶ func (l *Listener) Accept() (net.Conn, error) Source Files ¶ View all Source files conn.go listener.go ratelimit.go Click to show internal directories. Click to hide internal directories.