Documentation
¶
Index ¶
- type MockUDPListener
- func (l *MockUDPListener) Close() error
- func (l *MockUDPListener) LocalAddr() net.Addr
- func (l *MockUDPListener) ReadFrom(p []byte) (n int, addr net.Addr, err error)
- func (l *MockUDPListener) SetDeadline(t time.Time) error
- func (l *MockUDPListener) SetReadDeadline(t time.Time) error
- func (l *MockUDPListener) SetWriteDeadline(t time.Time) error
- func (l *MockUDPListener) WriteTo(p []byte, addr net.Addr) (n int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockUDPListener ¶
type MockUDPListener struct { ReadFromFunc func(p []byte) (n int, addr net.Addr, err error) WriteToFunc func(p []byte, addr net.Addr) (n int, err error) LocalAddrFunc func() net.Addr SetDeadlineFunc func(t time.Time) error SetReadDeadlineFunc func(t time.Time) error SetWriteDeadlineFunc func(t time.Time) error CloseFunc func() error }
func (*MockUDPListener) Close ¶
func (l *MockUDPListener) Close() error
func (*MockUDPListener) LocalAddr ¶
func (l *MockUDPListener) LocalAddr() net.Addr
func (*MockUDPListener) SetDeadline ¶
func (l *MockUDPListener) SetDeadline(t time.Time) error
func (*MockUDPListener) SetReadDeadline ¶
func (l *MockUDPListener) SetReadDeadline(t time.Time) error
func (*MockUDPListener) SetWriteDeadline ¶
func (l *MockUDPListener) SetWriteDeadline(t time.Time) error
Click to show internal directories.
Click to hide internal directories.