Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockDB
- func (m *MockDB) Close() error
- func (m *MockDB) CreateTable() error
- func (m *MockDB) EXPECT() *MockDBMockRecorder
- func (m *MockDB) GetMaxIP() (uint32, error)
- func (m *MockDB) GetOldestIP() (uint32, error)
- func (m *MockDB) Open() error
- func (m *MockDB) Ping() error
- func (m *MockDB) Save(arg0 types.Tasks) error
- type MockDBMockRecorder
- func (mr *MockDBMockRecorder) Close() *gomock.Call
- func (mr *MockDBMockRecorder) CreateTable() *gomock.Call
- func (mr *MockDBMockRecorder) GetMaxIP() *gomock.Call
- func (mr *MockDBMockRecorder) GetOldestIP() *gomock.Call
- func (mr *MockDBMockRecorder) Open() *gomock.Call
- func (mr *MockDBMockRecorder) Ping() *gomock.Call
- func (mr *MockDBMockRecorder) Save(arg0 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDB ¶
type MockDB struct {
// contains filtered or unexported fields
}
MockDB is a mock of DB interface.
func NewMockDB ¶
func NewMockDB(ctrl *gomock.Controller) *MockDB
NewMockDB creates a new mock instance.
func (*MockDB) EXPECT ¶
func (m *MockDB) EXPECT() *MockDBMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDB) GetOldestIP ¶
GetOldestIP mocks base method.
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB.
func (*MockDBMockRecorder) Close ¶
func (mr *MockDBMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDBMockRecorder) CreateTable ¶
func (mr *MockDBMockRecorder) CreateTable() *gomock.Call
CreateTable indicates an expected call of CreateTable.
func (*MockDBMockRecorder) GetMaxIP ¶
func (mr *MockDBMockRecorder) GetMaxIP() *gomock.Call
GetMaxIP indicates an expected call of GetMaxIP.
func (*MockDBMockRecorder) GetOldestIP ¶
func (mr *MockDBMockRecorder) GetOldestIP() *gomock.Call
GetOldestIP indicates an expected call of GetOldestIP.
func (*MockDBMockRecorder) Open ¶
func (mr *MockDBMockRecorder) Open() *gomock.Call
Open indicates an expected call of Open.
func (*MockDBMockRecorder) Ping ¶
func (mr *MockDBMockRecorder) Ping() *gomock.Call
Ping indicates an expected call of Ping.
func (*MockDBMockRecorder) Save ¶
func (mr *MockDBMockRecorder) Save(arg0 interface{}) *gomock.Call
Save indicates an expected call of Save.
Click to show internal directories.
Click to hide internal directories.