Documentation
¶
Index ¶
- type DummyConn
- func (*DummyConn) Close() error
- func (*DummyConn) LocalAddr() net.Addr
- func (*DummyConn) Read([]byte) (int, error)
- func (*DummyConn) RemoteAddr() net.Addr
- func (*DummyConn) SetDeadline(time.Time) error
- func (*DummyConn) SetReadDeadline(time.Time) error
- func (*DummyConn) SetWriteDeadline(time.Time) error
- func (*DummyConn) Write([]byte) (int, error)
- type IdleListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DummyConn ¶
type DummyConn struct{}
DummyConn reads and writes no data.
func (*DummyConn) RemoteAddr ¶
type IdleListener ¶
type IdleListener struct {
// contains filtered or unexported fields
}
IdleListener opens a number of idle connections and then closes them one by one after a delay.
func NewIdleListener ¶
func NewIdleListener(numConns int, idleTime time.Duration) *IdleListener
NewIdleListener creates a new IdleListener with the specified number of active connections and time delay.
func (*IdleListener) Addr ¶
func (l *IdleListener) Addr() net.Addr
func (*IdleListener) Close ¶
func (l *IdleListener) Close() error
func (*IdleListener) OpenConns ¶
func (l *IdleListener) OpenConns() int
Click to show internal directories.
Click to hide internal directories.