Documentation ¶
Index ¶
- type Conn
- type MockConn
- func (m MockConn) Close() error
- func (m MockConn) LocalAddr() net.Addr
- func (m MockConn) Read(b []byte) (n int, err error)
- func (m MockConn) RemoteAddr() net.Addr
- func (m MockConn) SetDeadline(t time.Time) error
- func (m MockConn) SetReadDeadline(t time.Time) error
- func (m MockConn) SetWriteDeadline(t time.Time) error
- func (m MockConn) Write(b []byte) (n int, err error)
- type MockUDPConn
- type UDPConn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConn ¶
type MockConn struct { ReadFunc func(b []byte) (n int, err error) WriteFunc func(b []byte) (n int, err error) CloseFunc func() error LocalAddrFunc func() net.Addr RemoteAddrFunc func() net.Addr SetDeadlineFunc func(t time.Time) error SetReadDeadlineFunc func(t time.Time) error SetWriteDeadlineFunc func(t time.Time) error }
func (MockConn) RemoteAddr ¶
Click to show internal directories.
Click to hide internal directories.