Documentation ¶
Index ¶
- Constants
- 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 ¶
View Source
const (
URL = "127.0.0.1:2500"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
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.