Documentation
¶
Overview ¶
Package nettest provides types and functions to test net related functionality.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrListenerClosed = errors.New("failed to listen, closed")
)
Functions ¶
This section is empty.
Types ¶
type SlowAcceptListener ¶
type SlowAcceptListener struct {
Network string
Address string
// contains filtered or unexported fields
}
func NewSlowAcceptListener ¶
func NewSlowAcceptListener(opt *SlowAcceptListenerOptions) (*SlowAcceptListener, error)
func (*SlowAcceptListener) Addr ¶
func (lo *SlowAcceptListener) Addr() net.Addr
func (*SlowAcceptListener) Close ¶
func (lo *SlowAcceptListener) Close() error
func (*SlowAcceptListener) Delay ¶
func (lo *SlowAcceptListener) Delay(d time.Duration)
Click to show internal directories.
Click to hide internal directories.