Documentation ¶
Index ¶
- type ClientConnectionInterface
- type ServerConnectionInterface
- func (_m *ServerConnectionInterface) AcceptConn() error
- func (_m *ServerConnectionInterface) CloseConn() error
- func (_m *ServerConnectionInterface) CloseListener() error
- func (_m *ServerConnectionInterface) ConnectionEstablished() bool
- func (_m *ServerConnectionInterface) ReceiveThroughListener() ([]byte, error)
- func (_m *ServerConnectionInterface) SendFromServer(_a0 []byte) error
- func (_m *ServerConnectionInterface) StartListener(ipAddr string, port int) (int, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ClientConnectionInterface ¶
ClientConnectionInterface is an autogenerated mock type for the ClientConnectionInterface type
func (*ClientConnectionInterface) CloseConn ¶
func (_m *ClientConnectionInterface) CloseConn() error
CloseConn provides a mock function with given fields:
func (*ClientConnectionInterface) EstablishConn ¶
func (_m *ClientConnectionInterface) EstablishConn() error
EstablishConn provides a mock function with given fields:
func (*ClientConnectionInterface) Receive ¶
func (_m *ClientConnectionInterface) Receive() ([]byte, error)
Receive provides a mock function with given fields:
func (*ClientConnectionInterface) Send ¶
func (_m *ClientConnectionInterface) Send(message []byte) error
Send provides a mock function with given fields: message
type ServerConnectionInterface ¶
ServerConnectionInterface is an autogenerated mock type for the ServerConnectionInterface type
func (*ServerConnectionInterface) AcceptConn ¶
func (_m *ServerConnectionInterface) AcceptConn() error
AcceptConn provides a mock function with given fields:
func (*ServerConnectionInterface) CloseConn ¶
func (_m *ServerConnectionInterface) CloseConn() error
CloseConn provides a mock function with given fields:
func (*ServerConnectionInterface) CloseListener ¶
func (_m *ServerConnectionInterface) CloseListener() error
CloseListener provides a mock function with given fields:
func (*ServerConnectionInterface) ConnectionEstablished ¶
func (_m *ServerConnectionInterface) ConnectionEstablished() bool
ConnectionEstablished provides a mock function with given fields:
func (*ServerConnectionInterface) ReceiveThroughListener ¶
func (_m *ServerConnectionInterface) ReceiveThroughListener() ([]byte, error)
ReceiveThroughListener provides a mock function with given fields:
func (*ServerConnectionInterface) SendFromServer ¶
func (_m *ServerConnectionInterface) SendFromServer(_a0 []byte) error
SendFromServer provides a mock function with given fields: _a0
func (*ServerConnectionInterface) StartListener ¶
func (_m *ServerConnectionInterface) StartListener(ipAddr string, port int) (int, error)
StartListener provides a mock function with given fields: ipAddr, port