Documentation ¶
Index ¶
- type FakeConn
- func (c *FakeConn) Close() error
- func (c *FakeConn) LocalAddr() net.Addr
- func (c *FakeConn) Read(b []byte) (n int, err error)
- func (c *FakeConn) RemoteAddr() net.Addr
- func (c *FakeConn) Run()
- func (c *FakeConn) SetDeadline(t time.Time) error
- func (c *FakeConn) SetReadDeadline(t time.Time) error
- func (c *FakeConn) SetWriteDeadline(t time.Time) error
- func (c *FakeConn) Write(b []byte) (n int, err error)
- type FakeListener
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeConn ¶
type FakeConn struct {
// contains filtered or unexported fields
}
FakeConn is a faked connection which reads from a reader and writes to a writer.
func (*FakeConn) RemoteAddr ¶
type FakeListener ¶
type FakeListener struct {
// contains filtered or unexported fields
}
func NewFakeListener ¶
func NewFakeListener(addr net.Addr) *FakeListener
NewFakeListener returns a newly allocated *FakeListener.
func (*FakeListener) Addr ¶
func (l *FakeListener) Addr() net.Addr
Addr returns the listener's network address.
func (*FakeListener) Close ¶
func (l *FakeListener) Close() error
Close closes the listener. Any blocked Accept operations will be unblocked and return errors.
Click to show internal directories.
Click to hide internal directories.