Documentation ¶
Overview ¶
Package mock_acceptor is a generated GoMock package.
Index ¶
- type MockAcceptor
- type MockAcceptorMockRecorder
- type MockPlayerConn
- func (m *MockPlayerConn) Close() error
- func (m *MockPlayerConn) EXPECT() *MockPlayerConnMockRecorder
- func (m *MockPlayerConn) GetNextMessage() ([]byte, error)
- func (m *MockPlayerConn) LocalAddr() net.Addr
- func (m *MockPlayerConn) Read(b []byte) (int, error)
- func (m *MockPlayerConn) RemoteAddr() net.Addr
- func (m *MockPlayerConn) SetDeadline(t time.Time) error
- func (m *MockPlayerConn) SetReadDeadline(t time.Time) error
- func (m *MockPlayerConn) SetWriteDeadline(t time.Time) error
- func (m *MockPlayerConn) Write(b []byte) (int, error)
- type MockPlayerConnMockRecorder
- func (mr *MockPlayerConnMockRecorder) Close() *gomock.Call
- func (mr *MockPlayerConnMockRecorder) GetNextMessage() *gomock.Call
- func (mr *MockPlayerConnMockRecorder) LocalAddr() *gomock.Call
- func (mr *MockPlayerConnMockRecorder) Read(b interface{}) *gomock.Call
- func (mr *MockPlayerConnMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockPlayerConnMockRecorder) SetDeadline(t interface{}) *gomock.Call
- func (mr *MockPlayerConnMockRecorder) SetReadDeadline(t interface{}) *gomock.Call
- func (mr *MockPlayerConnMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call
- func (mr *MockPlayerConnMockRecorder) Write(b interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAcceptor ¶ added in v0.14.0
type MockAcceptor struct {
// contains filtered or unexported fields
}
MockAcceptor is a mock of Acceptor interface
func NewMockAcceptor ¶ added in v0.14.0
func NewMockAcceptor(ctrl *gomock.Controller) *MockAcceptor
NewMockAcceptor creates a new mock instance
func (*MockAcceptor) EXPECT ¶ added in v0.14.0
func (m *MockAcceptor) EXPECT() *MockAcceptorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAcceptor) GetAddr ¶ added in v0.14.0
func (m *MockAcceptor) GetAddr() string
GetAddr mocks base method
func (*MockAcceptor) GetConnChan ¶ added in v0.14.0
func (m *MockAcceptor) GetConnChan() chan acceptor.PlayerConn
GetConnChan mocks base method
func (*MockAcceptor) ListenAndServe ¶ added in v0.14.0
func (m *MockAcceptor) ListenAndServe()
ListenAndServe mocks base method
type MockAcceptorMockRecorder ¶ added in v0.14.0
type MockAcceptorMockRecorder struct {
// contains filtered or unexported fields
}
MockAcceptorMockRecorder is the mock recorder for MockAcceptor
func (*MockAcceptorMockRecorder) GetAddr ¶ added in v0.14.0
func (mr *MockAcceptorMockRecorder) GetAddr() *gomock.Call
GetAddr indicates an expected call of GetAddr
func (*MockAcceptorMockRecorder) GetConnChan ¶ added in v0.14.0
func (mr *MockAcceptorMockRecorder) GetConnChan() *gomock.Call
GetConnChan indicates an expected call of GetConnChan
func (*MockAcceptorMockRecorder) ListenAndServe ¶ added in v0.14.0
func (mr *MockAcceptorMockRecorder) ListenAndServe() *gomock.Call
ListenAndServe indicates an expected call of ListenAndServe
func (*MockAcceptorMockRecorder) Stop ¶ added in v0.14.0
func (mr *MockAcceptorMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop
type MockPlayerConn ¶ added in v1.0.0
type MockPlayerConn struct {
// contains filtered or unexported fields
}
MockPlayerConn is a mock of PlayerConn interface
func NewMockPlayerConn ¶ added in v1.0.0
func NewMockPlayerConn(ctrl *gomock.Controller) *MockPlayerConn
NewMockPlayerConn creates a new mock instance
func (*MockPlayerConn) Close ¶ added in v1.0.0
func (m *MockPlayerConn) Close() error
Close mocks base method
func (*MockPlayerConn) EXPECT ¶ added in v1.0.0
func (m *MockPlayerConn) EXPECT() *MockPlayerConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockPlayerConn) GetNextMessage ¶ added in v1.0.0
func (m *MockPlayerConn) GetNextMessage() ([]byte, error)
GetNextMessage mocks base method
func (*MockPlayerConn) LocalAddr ¶ added in v1.0.0
func (m *MockPlayerConn) LocalAddr() net.Addr
LocalAddr mocks base method
func (*MockPlayerConn) Read ¶ added in v1.0.0
func (m *MockPlayerConn) Read(b []byte) (int, error)
Read mocks base method
func (*MockPlayerConn) RemoteAddr ¶ added in v1.0.0
func (m *MockPlayerConn) RemoteAddr() net.Addr
RemoteAddr mocks base method
func (*MockPlayerConn) SetDeadline ¶ added in v1.0.0
func (m *MockPlayerConn) SetDeadline(t time.Time) error
SetDeadline mocks base method
func (*MockPlayerConn) SetReadDeadline ¶ added in v1.0.0
func (m *MockPlayerConn) SetReadDeadline(t time.Time) error
SetReadDeadline mocks base method
func (*MockPlayerConn) SetWriteDeadline ¶ added in v1.0.0
func (m *MockPlayerConn) SetWriteDeadline(t time.Time) error
SetWriteDeadline mocks base method
type MockPlayerConnMockRecorder ¶ added in v1.0.0
type MockPlayerConnMockRecorder struct {
// contains filtered or unexported fields
}
MockPlayerConnMockRecorder is the mock recorder for MockPlayerConn
func (*MockPlayerConnMockRecorder) Close ¶ added in v1.0.0
func (mr *MockPlayerConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockPlayerConnMockRecorder) GetNextMessage ¶ added in v1.0.0
func (mr *MockPlayerConnMockRecorder) GetNextMessage() *gomock.Call
GetNextMessage indicates an expected call of GetNextMessage
func (*MockPlayerConnMockRecorder) LocalAddr ¶ added in v1.0.0
func (mr *MockPlayerConnMockRecorder) LocalAddr() *gomock.Call
LocalAddr indicates an expected call of LocalAddr
func (*MockPlayerConnMockRecorder) Read ¶ added in v1.0.0
func (mr *MockPlayerConnMockRecorder) Read(b interface{}) *gomock.Call
Read indicates an expected call of Read
func (*MockPlayerConnMockRecorder) RemoteAddr ¶ added in v1.0.0
func (mr *MockPlayerConnMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr
func (*MockPlayerConnMockRecorder) SetDeadline ¶ added in v1.0.0
func (mr *MockPlayerConnMockRecorder) SetDeadline(t interface{}) *gomock.Call
SetDeadline indicates an expected call of SetDeadline
func (*MockPlayerConnMockRecorder) SetReadDeadline ¶ added in v1.0.0
func (mr *MockPlayerConnMockRecorder) SetReadDeadline(t interface{}) *gomock.Call
SetReadDeadline indicates an expected call of SetReadDeadline
func (*MockPlayerConnMockRecorder) SetWriteDeadline ¶ added in v1.0.0
func (mr *MockPlayerConnMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call
SetWriteDeadline indicates an expected call of SetWriteDeadline
func (*MockPlayerConnMockRecorder) Write ¶ added in v1.0.0
func (mr *MockPlayerConnMockRecorder) Write(b interface{}) *gomock.Call
Write indicates an expected call of Write