Documentation ¶
Index ¶
- type Addr
- type Conn
- type End
- func (e End) Close() (err error)
- func (e End) LocalAddr() net.Addr
- func (e End) Read(data []byte) (n int, err error)
- func (e End) RemoteAddr() net.Addr
- func (e End) SetDeadline(t time.Time) error
- func (e End) SetReadDeadline(t time.Time) error
- func (e End) SetWriteDeadline(t time.Time) error
- func (e End) Write(data []byte) (n int, err error)
- type Noop
- func (e Noop) Close() (err error)
- func (e Noop) LocalAddr() net.Addr
- func (e Noop) Read(data []byte) (n int, err error)
- func (e Noop) RemoteAddr() net.Addr
- func (e Noop) SetDeadline(t time.Time) error
- func (e Noop) SetReadDeadline(t time.Time) error
- func (e Noop) SetWriteDeadline(t time.Time) error
- func (e Noop) Write(data []byte) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conn ¶
Conn facilitates testing by providing two connected ReadWriteClosers each of which can be used in place of a net.Conn
type End ¶
type End struct { Reader *io.PipeReader Writer *io.PipeWriter }
End is one 'end' of a simulated connection.
func (End) SetDeadline ¶
SetDeadline implements the interface.
func (End) SetReadDeadline ¶
SetReadDeadline implements the interface.
func (End) SetWriteDeadline ¶
SetWriteDeadline implements the interface.
type Noop ¶
type Noop struct{}
Noop is a fake connection.
func (Noop) SetDeadline ¶
SetDeadline implements the interface.
func (Noop) SetReadDeadline ¶
SetReadDeadline implements the interface.
func (Noop) SetWriteDeadline ¶
SetWriteDeadline implements the interface.
Click to show internal directories.
Click to hide internal directories.