mocks

package
v1.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2020 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ClientConnectionInterface

type ClientConnectionInterface struct {
	mock.Mock
}

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

type ServerConnectionInterface struct {
	mock.Mock
}

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL