Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type ConnStub
- func (s *ConnStub) Close() error
- func (s *ConnStub) LocalAddr() net.Addr
- func (s *ConnStub) Read(buff []byte) (int, error)
- func (s *ConnStub) RemoteAddr() net.Addr
- func (s *ConnStub) SetDeadline(time.Time) error
- func (s *ConnStub) SetReadDeadline(time.Time) error
- func (s *ConnStub) SetWriteDeadline(time.Time) error
- func (s *ConnStub) Write([]byte) (int, error)
- type MockConn
- func (m *MockConn) Close() error
- func (m *MockConn) EXPECT() *MockConnMockRecorder
- func (m *MockConn) LocalAddr() net.Addr
- func (m *MockConn) Read(arg0 []byte) (int, error)
- func (m *MockConn) RemoteAddr() net.Addr
- func (m *MockConn) SetDeadline(arg0 time.Time) error
- func (m *MockConn) SetReadDeadline(arg0 time.Time) error
- func (m *MockConn) SetWriteDeadline(arg0 time.Time) error
- func (m *MockConn) Write(arg0 []byte) (int, error)
- type MockConnMockRecorder
- func (mr *MockConnMockRecorder) Close() *gomock.Call
- func (mr *MockConnMockRecorder) LocalAddr() *gomock.Call
- func (mr *MockConnMockRecorder) Read(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) Write(arg0 interface{}) *gomock.Call
- type MockFrame
- type MockFrameMockRecorder
- type MockListener
- type MockListenerConfig
- type MockListenerConfigMockRecorder
- type MockListenerMockRecorder
- type MockWorker
- type MockWorkerMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConnStub ¶
func (*ConnStub) RemoteAddr ¶
type MockConn ¶
type MockConn struct {
// contains filtered or unexported fields
}
MockConn is a mock of Conn interface.
func NewMockConn ¶
func NewMockConn(ctrl *gomock.Controller) *MockConn
NewMockConn creates a new mock instance.
func (*MockConn) EXPECT ¶
func (m *MockConn) EXPECT() *MockConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConn) RemoteAddr ¶
RemoteAddr mocks base method.
func (*MockConn) SetDeadline ¶
SetDeadline mocks base method.
func (*MockConn) SetReadDeadline ¶
SetReadDeadline mocks base method.
func (*MockConn) SetWriteDeadline ¶
SetWriteDeadline mocks base method.
type MockConnMockRecorder ¶
type MockConnMockRecorder struct {
// contains filtered or unexported fields
}
MockConnMockRecorder is the mock recorder for MockConn.
func (*MockConnMockRecorder) Close ¶
func (mr *MockConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockConnMockRecorder) LocalAddr ¶
func (mr *MockConnMockRecorder) LocalAddr() *gomock.Call
LocalAddr indicates an expected call of LocalAddr.
func (*MockConnMockRecorder) Read ¶
func (mr *MockConnMockRecorder) Read(arg0 interface{}) *gomock.Call
Read indicates an expected call of Read.
func (*MockConnMockRecorder) RemoteAddr ¶
func (mr *MockConnMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr.
func (*MockConnMockRecorder) SetDeadline ¶
func (mr *MockConnMockRecorder) SetDeadline(arg0 interface{}) *gomock.Call
SetDeadline indicates an expected call of SetDeadline.
func (*MockConnMockRecorder) SetReadDeadline ¶
func (mr *MockConnMockRecorder) SetReadDeadline(arg0 interface{}) *gomock.Call
SetReadDeadline indicates an expected call of SetReadDeadline.
func (*MockConnMockRecorder) SetWriteDeadline ¶
func (mr *MockConnMockRecorder) SetWriteDeadline(arg0 interface{}) *gomock.Call
SetWriteDeadline indicates an expected call of SetWriteDeadline.
func (*MockConnMockRecorder) Write ¶
func (mr *MockConnMockRecorder) Write(arg0 interface{}) *gomock.Call
Write indicates an expected call of Write.
type MockFrame ¶
type MockFrame struct {
// contains filtered or unexported fields
}
MockFrame is a mock of Frame interface.
func NewMockFrame ¶
func NewMockFrame(ctrl *gomock.Controller) *MockFrame
NewMockFrame creates a new mock instance.
func (*MockFrame) EXPECT ¶
func (m *MockFrame) EXPECT() *MockFrameMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockFrameMockRecorder ¶
type MockFrameMockRecorder struct {
// contains filtered or unexported fields
}
MockFrameMockRecorder is the mock recorder for MockFrame.
func (*MockFrameMockRecorder) Messages ¶
func (mr *MockFrameMockRecorder) Messages() *gomock.Call
Messages indicates an expected call of Messages.
func (*MockFrameMockRecorder) Release ¶
func (mr *MockFrameMockRecorder) Release() *gomock.Call
Release indicates an expected call of Release.
type MockListener ¶
type MockListener struct {
// contains filtered or unexported fields
}
MockListener is a mock of Listener interface.
func NewMockListener ¶
func NewMockListener(ctrl *gomock.Controller) *MockListener
NewMockListener creates a new mock instance.
func (*MockListener) Accept ¶
func (m *MockListener) Accept() (net.Conn, error)
Accept mocks base method.
func (*MockListener) EXPECT ¶
func (m *MockListener) EXPECT() *MockListenerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockListenerConfig ¶
type MockListenerConfig struct {
// contains filtered or unexported fields
}
MockListenerConfig is a mock of ListenerConfig interface.
func NewMockListenerConfig ¶
func NewMockListenerConfig(ctrl *gomock.Controller) *MockListenerConfig
NewMockListenerConfig creates a new mock instance.
func (*MockListenerConfig) EXPECT ¶
func (m *MockListenerConfig) EXPECT() *MockListenerConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockListenerConfigMockRecorder ¶
type MockListenerConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockListenerConfigMockRecorder is the mock recorder for MockListenerConfig.
func (*MockListenerConfigMockRecorder) Listen ¶
func (mr *MockListenerConfigMockRecorder) Listen(ctx, network, address interface{}) *gomock.Call
Listen indicates an expected call of Listen.
type MockListenerMockRecorder ¶
type MockListenerMockRecorder struct {
// contains filtered or unexported fields
}
MockListenerMockRecorder is the mock recorder for MockListener.
func (*MockListenerMockRecorder) Accept ¶
func (mr *MockListenerMockRecorder) Accept() *gomock.Call
Accept indicates an expected call of Accept.
func (*MockListenerMockRecorder) Addr ¶
func (mr *MockListenerMockRecorder) Addr() *gomock.Call
Addr indicates an expected call of Addr.
func (*MockListenerMockRecorder) Close ¶
func (mr *MockListenerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
type MockWorker ¶
type MockWorker struct {
// contains filtered or unexported fields
}
MockWorker is a mock of Worker interface.
func NewMockWorker ¶
func NewMockWorker(ctrl *gomock.Controller) *MockWorker
NewMockWorker creates a new mock instance.
func (*MockWorker) EXPECT ¶
func (m *MockWorker) EXPECT() *MockWorkerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockWorkerMockRecorder ¶
type MockWorkerMockRecorder struct {
// contains filtered or unexported fields
}
MockWorkerMockRecorder is the mock recorder for MockWorker.
func (*MockWorkerMockRecorder) Run ¶
func (mr *MockWorkerMockRecorder) Run(ctx interface{}) *gomock.Call
Run indicates an expected call of Run.