Documentation ¶
Index ¶
- func NewListener(server, client net.Conn) net.Listener
- type Addr
- type Conn
- type End
- func (e End) Close() 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)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Conn ¶
MockConn 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) RemoteAddr ¶
Click to show internal directories.
Click to hide internal directories.