Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockDB
- type MockDBMockRecorder
- type MockFileSystem
- func (m *MockFileSystem) Chtimes(arg0 string, arg1, arg2 time.Time) error
- func (m *MockFileSystem) CopyDir(arg0, arg1 string) error
- func (m *MockFileSystem) CopyFile(arg0, arg1 string) error
- func (m *MockFileSystem) Create(arg0 string) (fsys.File, error)
- func (m *MockFileSystem) EXPECT() *MockFileSystemMockRecorder
- func (m *MockFileSystem) Exists(arg0 string) bool
- func (m *MockFileSystem) Lock(arg0 string) (fsys.Releaser, bool, error)
- func (m *MockFileSystem) Mkdir(arg0 string, arg1 os.FileMode) error
- func (m *MockFileSystem) MkdirAll(arg0 string, arg1 os.FileMode) error
- func (m *MockFileSystem) Open(arg0 string) (fsys.File, error)
- func (m *MockFileSystem) OpenFile(arg0 string, arg1 int, arg2 os.FileMode) (fsys.File, error)
- func (m *MockFileSystem) Remove(arg0 string) error
- func (m *MockFileSystem) RemoveAll(arg0 string) error
- func (m *MockFileSystem) Rename(arg0, arg1 string) error
- func (m *MockFileSystem) Symlink(arg0, arg1 string) error
- func (m *MockFileSystem) Walk(arg0 string, arg1 filepath.WalkFunc) error
- type MockFileSystemMockRecorder
- func (mr *MockFileSystemMockRecorder) Chtimes(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) CopyDir(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) CopyFile(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Create(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Exists(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Lock(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Mkdir(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) MkdirAll(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Open(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) OpenFile(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Remove(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) RemoveAll(arg0 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Rename(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Symlink(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockFileSystemMockRecorder) Walk(arg0, arg1 interface{}) *gomock.Call
- type MockListener
- type MockListenerMockRecorder
- type MockNet
- type MockNetMockRecorder
- type MockNode
- type MockNodeMockRecorder
- func (mr *MockNodeMockRecorder) Close() *gomock.Call
- func (mr *MockNodeMockRecorder) DB() *gomock.Call
- func (mr *MockNodeMockRecorder) Dir() *gomock.Call
- func (mr *MockNodeMockRecorder) Open(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockNodeMockRecorder) Transaction(arg0 interface{}) *gomock.Call
- type MockRaftInstance
- func (m *MockRaftInstance) EXPECT() *MockRaftInstanceMockRecorder
- func (m *MockRaftInstance) HandlerFunc() http.HandlerFunc
- func (m *MockRaftInstance) Init() error
- func (m *MockRaftInstance) MembershipChanger() raft_membership.Changer
- func (m *MockRaftInstance) Raft() *raft.Raft
- func (m *MockRaftInstance) Registry() *go_dqlite.Registry
- func (m *MockRaftInstance) Servers() ([]raft.Server, error)
- func (m *MockRaftInstance) Shutdown() error
- type MockRaftInstanceMockRecorder
- func (mr *MockRaftInstanceMockRecorder) HandlerFunc() *gomock.Call
- func (mr *MockRaftInstanceMockRecorder) Init() *gomock.Call
- func (mr *MockRaftInstanceMockRecorder) MembershipChanger() *gomock.Call
- func (mr *MockRaftInstanceMockRecorder) Raft() *gomock.Call
- func (mr *MockRaftInstanceMockRecorder) Registry() *gomock.Call
- func (mr *MockRaftInstanceMockRecorder) Servers() *gomock.Call
- func (mr *MockRaftInstanceMockRecorder) Shutdown() *gomock.Call
- type MockRaftProvider
- type MockRaftProviderMockRecorder
- type MockRows
- func (m *MockRows) Close() error
- func (m *MockRows) ColumnTypes() ([]database.ColumnType, error)
- func (m *MockRows) Columns() ([]string, error)
- func (m *MockRows) EXPECT() *MockRowsMockRecorder
- func (m *MockRows) Err() error
- func (m *MockRows) Next() bool
- func (m *MockRows) Scan(arg0 ...interface{}) error
- type MockRowsMockRecorder
- func (mr *MockRowsMockRecorder) Close() *gomock.Call
- func (mr *MockRowsMockRecorder) ColumnTypes() *gomock.Call
- func (mr *MockRowsMockRecorder) Columns() *gomock.Call
- func (mr *MockRowsMockRecorder) Err() *gomock.Call
- func (mr *MockRowsMockRecorder) Next() *gomock.Call
- func (mr *MockRowsMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
- type MockServer
- type MockServerMockRecorder
- type MockServerProvider
- type MockServerProviderMockRecorder
- type MockServerStore
- type MockServerStoreMockRecorder
- type MockSleeper
- type MockSleeperMockRecorder
- type MockStoreProvider
- type MockStoreProviderMockRecorder
- type MockTx
- type MockTxMockRecorder
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
type MockDBMockRecorder ¶
type MockDBMockRecorder struct {
// contains filtered or unexported fields
}
MockDBMockRecorder is the mock recorder for MockDB
func (*MockDBMockRecorder) Begin ¶
func (mr *MockDBMockRecorder) Begin() *gomock.Call
Begin indicates an expected call of Begin
func (*MockDBMockRecorder) Close ¶
func (mr *MockDBMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockDBMockRecorder) Ping ¶
func (mr *MockDBMockRecorder) Ping() *gomock.Call
Ping indicates an expected call of Ping
type MockFileSystem ¶
type MockFileSystem struct {
// contains filtered or unexported fields
}
MockFileSystem is a mock of FileSystem interface
func NewMockFileSystem ¶
func NewMockFileSystem(ctrl *gomock.Controller) *MockFileSystem
NewMockFileSystem creates a new mock instance
func (*MockFileSystem) Chtimes ¶
func (m *MockFileSystem) Chtimes(arg0 string, arg1, arg2 time.Time) error
Chtimes mocks base method
func (*MockFileSystem) CopyDir ¶
func (m *MockFileSystem) CopyDir(arg0, arg1 string) error
CopyDir mocks base method
func (*MockFileSystem) CopyFile ¶
func (m *MockFileSystem) CopyFile(arg0, arg1 string) error
CopyFile mocks base method
func (*MockFileSystem) Create ¶
func (m *MockFileSystem) Create(arg0 string) (fsys.File, error)
Create mocks base method
func (*MockFileSystem) EXPECT ¶
func (m *MockFileSystem) EXPECT() *MockFileSystemMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockFileSystem) Exists ¶
func (m *MockFileSystem) Exists(arg0 string) bool
Exists mocks base method
func (*MockFileSystem) Mkdir ¶
func (m *MockFileSystem) Mkdir(arg0 string, arg1 os.FileMode) error
Mkdir mocks base method
func (*MockFileSystem) MkdirAll ¶
func (m *MockFileSystem) MkdirAll(arg0 string, arg1 os.FileMode) error
MkdirAll mocks base method
func (*MockFileSystem) Open ¶
func (m *MockFileSystem) Open(arg0 string) (fsys.File, error)
Open mocks base method
func (*MockFileSystem) Remove ¶
func (m *MockFileSystem) Remove(arg0 string) error
Remove mocks base method
func (*MockFileSystem) RemoveAll ¶
func (m *MockFileSystem) RemoveAll(arg0 string) error
RemoveAll mocks base method
func (*MockFileSystem) Rename ¶
func (m *MockFileSystem) Rename(arg0, arg1 string) error
Rename mocks base method
func (*MockFileSystem) Symlink ¶
func (m *MockFileSystem) Symlink(arg0, arg1 string) error
Symlink mocks base method
type MockFileSystemMockRecorder ¶
type MockFileSystemMockRecorder struct {
// contains filtered or unexported fields
}
MockFileSystemMockRecorder is the mock recorder for MockFileSystem
func (*MockFileSystemMockRecorder) Chtimes ¶
func (mr *MockFileSystemMockRecorder) Chtimes(arg0, arg1, arg2 interface{}) *gomock.Call
Chtimes indicates an expected call of Chtimes
func (*MockFileSystemMockRecorder) CopyDir ¶
func (mr *MockFileSystemMockRecorder) CopyDir(arg0, arg1 interface{}) *gomock.Call
CopyDir indicates an expected call of CopyDir
func (*MockFileSystemMockRecorder) CopyFile ¶
func (mr *MockFileSystemMockRecorder) CopyFile(arg0, arg1 interface{}) *gomock.Call
CopyFile indicates an expected call of CopyFile
func (*MockFileSystemMockRecorder) Create ¶
func (mr *MockFileSystemMockRecorder) Create(arg0 interface{}) *gomock.Call
Create indicates an expected call of Create
func (*MockFileSystemMockRecorder) Exists ¶
func (mr *MockFileSystemMockRecorder) Exists(arg0 interface{}) *gomock.Call
Exists indicates an expected call of Exists
func (*MockFileSystemMockRecorder) Lock ¶
func (mr *MockFileSystemMockRecorder) Lock(arg0 interface{}) *gomock.Call
Lock indicates an expected call of Lock
func (*MockFileSystemMockRecorder) Mkdir ¶
func (mr *MockFileSystemMockRecorder) Mkdir(arg0, arg1 interface{}) *gomock.Call
Mkdir indicates an expected call of Mkdir
func (*MockFileSystemMockRecorder) MkdirAll ¶
func (mr *MockFileSystemMockRecorder) MkdirAll(arg0, arg1 interface{}) *gomock.Call
MkdirAll indicates an expected call of MkdirAll
func (*MockFileSystemMockRecorder) Open ¶
func (mr *MockFileSystemMockRecorder) Open(arg0 interface{}) *gomock.Call
Open indicates an expected call of Open
func (*MockFileSystemMockRecorder) OpenFile ¶
func (mr *MockFileSystemMockRecorder) OpenFile(arg0, arg1, arg2 interface{}) *gomock.Call
OpenFile indicates an expected call of OpenFile
func (*MockFileSystemMockRecorder) Remove ¶
func (mr *MockFileSystemMockRecorder) Remove(arg0 interface{}) *gomock.Call
Remove indicates an expected call of Remove
func (*MockFileSystemMockRecorder) RemoveAll ¶
func (mr *MockFileSystemMockRecorder) RemoveAll(arg0 interface{}) *gomock.Call
RemoveAll indicates an expected call of RemoveAll
func (*MockFileSystemMockRecorder) Rename ¶
func (mr *MockFileSystemMockRecorder) Rename(arg0, arg1 interface{}) *gomock.Call
Rename indicates an expected call of Rename
func (*MockFileSystemMockRecorder) Symlink ¶
func (mr *MockFileSystemMockRecorder) Symlink(arg0, arg1 interface{}) *gomock.Call
Symlink indicates an expected call of Symlink
func (*MockFileSystemMockRecorder) Walk ¶
func (mr *MockFileSystemMockRecorder) Walk(arg0, arg1 interface{}) *gomock.Call
Walk indicates an expected call of Walk
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 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 MockNet ¶
type MockNet struct {
// contains filtered or unexported fields
}
MockNet is a mock of Net interface
func NewMockNet ¶
func NewMockNet(ctrl *gomock.Controller) *MockNet
NewMockNet creates a new mock instance
func (*MockNet) EXPECT ¶
func (m *MockNet) EXPECT() *MockNetMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockNetMockRecorder ¶
type MockNetMockRecorder struct {
// contains filtered or unexported fields
}
MockNetMockRecorder is the mock recorder for MockNet
func (*MockNetMockRecorder) UnixDial ¶
func (mr *MockNetMockRecorder) UnixDial(arg0 interface{}) *gomock.Call
UnixDial indicates an expected call of UnixDial
func (*MockNetMockRecorder) UnixListen ¶
func (mr *MockNetMockRecorder) UnixListen(arg0 interface{}) *gomock.Call
UnixListen indicates an expected call of UnixListen
type MockNode ¶
type MockNode struct {
// contains filtered or unexported fields
}
MockNode is a mock of Node interface
func NewMockNode ¶
func NewMockNode(ctrl *gomock.Controller) *MockNode
NewMockNode creates a new mock instance
func (*MockNode) EXPECT ¶
func (m *MockNode) EXPECT() *MockNodeMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockNodeMockRecorder ¶
type MockNodeMockRecorder struct {
// contains filtered or unexported fields
}
MockNodeMockRecorder is the mock recorder for MockNode
func (*MockNodeMockRecorder) Close ¶
func (mr *MockNodeMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockNodeMockRecorder) DB ¶
func (mr *MockNodeMockRecorder) DB() *gomock.Call
DB indicates an expected call of DB
func (*MockNodeMockRecorder) Dir ¶
func (mr *MockNodeMockRecorder) Dir() *gomock.Call
Dir indicates an expected call of Dir
func (*MockNodeMockRecorder) Open ¶
func (mr *MockNodeMockRecorder) Open(arg0, arg1 interface{}) *gomock.Call
Open indicates an expected call of Open
func (*MockNodeMockRecorder) Transaction ¶
func (mr *MockNodeMockRecorder) Transaction(arg0 interface{}) *gomock.Call
Transaction indicates an expected call of Transaction
type MockRaftInstance ¶
type MockRaftInstance struct {
// contains filtered or unexported fields
}
MockRaftInstance is a mock of RaftInstance interface
func NewMockRaftInstance ¶
func NewMockRaftInstance(ctrl *gomock.Controller) *MockRaftInstance
NewMockRaftInstance creates a new mock instance
func (*MockRaftInstance) EXPECT ¶
func (m *MockRaftInstance) EXPECT() *MockRaftInstanceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockRaftInstance) HandlerFunc ¶
func (m *MockRaftInstance) HandlerFunc() http.HandlerFunc
HandlerFunc mocks base method
func (*MockRaftInstance) MembershipChanger ¶
func (m *MockRaftInstance) MembershipChanger() raft_membership.Changer
MembershipChanger mocks base method
func (*MockRaftInstance) Registry ¶
func (m *MockRaftInstance) Registry() *go_dqlite.Registry
Registry mocks base method
func (*MockRaftInstance) Servers ¶
func (m *MockRaftInstance) Servers() ([]raft.Server, error)
Servers mocks base method
func (*MockRaftInstance) Shutdown ¶
func (m *MockRaftInstance) Shutdown() error
Shutdown mocks base method
type MockRaftInstanceMockRecorder ¶
type MockRaftInstanceMockRecorder struct {
// contains filtered or unexported fields
}
MockRaftInstanceMockRecorder is the mock recorder for MockRaftInstance
func (*MockRaftInstanceMockRecorder) HandlerFunc ¶
func (mr *MockRaftInstanceMockRecorder) HandlerFunc() *gomock.Call
HandlerFunc indicates an expected call of HandlerFunc
func (*MockRaftInstanceMockRecorder) Init ¶
func (mr *MockRaftInstanceMockRecorder) Init() *gomock.Call
Init indicates an expected call of Init
func (*MockRaftInstanceMockRecorder) MembershipChanger ¶
func (mr *MockRaftInstanceMockRecorder) MembershipChanger() *gomock.Call
MembershipChanger indicates an expected call of MembershipChanger
func (*MockRaftInstanceMockRecorder) Raft ¶
func (mr *MockRaftInstanceMockRecorder) Raft() *gomock.Call
Raft indicates an expected call of Raft
func (*MockRaftInstanceMockRecorder) Registry ¶
func (mr *MockRaftInstanceMockRecorder) Registry() *gomock.Call
Registry indicates an expected call of Registry
func (*MockRaftInstanceMockRecorder) Servers ¶
func (mr *MockRaftInstanceMockRecorder) Servers() *gomock.Call
Servers indicates an expected call of Servers
func (*MockRaftInstanceMockRecorder) Shutdown ¶
func (mr *MockRaftInstanceMockRecorder) Shutdown() *gomock.Call
Shutdown indicates an expected call of Shutdown
type MockRaftProvider ¶
type MockRaftProvider struct {
// contains filtered or unexported fields
}
MockRaftProvider is a mock of RaftProvider interface
func NewMockRaftProvider ¶
func NewMockRaftProvider(ctrl *gomock.Controller) *MockRaftProvider
NewMockRaftProvider creates a new mock instance
func (*MockRaftProvider) EXPECT ¶
func (m *MockRaftProvider) EXPECT() *MockRaftProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockRaftProviderMockRecorder ¶
type MockRaftProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockRaftProviderMockRecorder is the mock recorder for MockRaftProvider
func (*MockRaftProviderMockRecorder) New ¶
func (mr *MockRaftProviderMockRecorder) New(arg0, arg1, arg2, arg3, arg4, arg5 interface{}) *gomock.Call
New indicates an expected call of New
type MockRows ¶
type MockRows struct {
// contains filtered or unexported fields
}
MockRows is a mock of Rows interface
func NewMockRows ¶
func NewMockRows(ctrl *gomock.Controller) *MockRows
NewMockRows creates a new mock instance
func (*MockRows) ColumnTypes ¶
func (m *MockRows) ColumnTypes() ([]database.ColumnType, error)
ColumnTypes mocks base method
func (*MockRows) EXPECT ¶
func (m *MockRows) EXPECT() *MockRowsMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockRowsMockRecorder ¶
type MockRowsMockRecorder struct {
// contains filtered or unexported fields
}
MockRowsMockRecorder is the mock recorder for MockRows
func (*MockRowsMockRecorder) Close ¶
func (mr *MockRowsMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockRowsMockRecorder) ColumnTypes ¶
func (mr *MockRowsMockRecorder) ColumnTypes() *gomock.Call
ColumnTypes indicates an expected call of ColumnTypes
func (*MockRowsMockRecorder) Columns ¶
func (mr *MockRowsMockRecorder) Columns() *gomock.Call
Columns indicates an expected call of Columns
func (*MockRowsMockRecorder) Err ¶
func (mr *MockRowsMockRecorder) Err() *gomock.Call
Err indicates an expected call of Err
func (*MockRowsMockRecorder) Next ¶
func (mr *MockRowsMockRecorder) Next() *gomock.Call
Next indicates an expected call of Next
func (*MockRowsMockRecorder) Scan ¶
func (mr *MockRowsMockRecorder) Scan(arg0 ...interface{}) *gomock.Call
Scan indicates an expected call of Scan
type MockServer ¶
type MockServer struct {
// contains filtered or unexported fields
}
MockServer is a mock of Server interface
func NewMockServer ¶
func NewMockServer(ctrl *gomock.Controller) *MockServer
NewMockServer creates a new mock instance
func (*MockServer) EXPECT ¶
func (m *MockServer) EXPECT() *MockServerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockServerMockRecorder ¶
type MockServerMockRecorder struct {
// contains filtered or unexported fields
}
MockServerMockRecorder is the mock recorder for MockServer
func (*MockServerMockRecorder) Close ¶
func (mr *MockServerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close
func (*MockServerMockRecorder) Dump ¶
func (mr *MockServerMockRecorder) Dump(arg0, arg1 interface{}) *gomock.Call
Dump indicates an expected call of Dump
type MockServerProvider ¶
type MockServerProvider struct {
// contains filtered or unexported fields
}
MockServerProvider is a mock of ServerProvider interface
func NewMockServerProvider ¶
func NewMockServerProvider(ctrl *gomock.Controller) *MockServerProvider
NewMockServerProvider creates a new mock instance
func (*MockServerProvider) EXPECT ¶
func (m *MockServerProvider) EXPECT() *MockServerProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockServerProvider) New ¶
func (m *MockServerProvider) New(arg0 cluster.RaftInstance, arg1 net.Listener, arg2 *raft.AddressProvider, arg3 log.Logger) (cluster.Server, error)
New mocks base method
type MockServerProviderMockRecorder ¶
type MockServerProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockServerProviderMockRecorder is the mock recorder for MockServerProvider
func (*MockServerProviderMockRecorder) New ¶
func (mr *MockServerProviderMockRecorder) New(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
New indicates an expected call of New
type MockServerStore ¶
type MockServerStore struct {
// contains filtered or unexported fields
}
MockServerStore is a mock of ServerStore interface
func NewMockServerStore ¶
func NewMockServerStore(ctrl *gomock.Controller) *MockServerStore
NewMockServerStore creates a new mock instance
func (*MockServerStore) EXPECT ¶
func (m *MockServerStore) EXPECT() *MockServerStoreMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockServerStore) Get ¶
func (m *MockServerStore) Get(arg0 context.Context) ([]cluster.ServerInfo, error)
Get mocks base method
func (*MockServerStore) Set ¶
func (m *MockServerStore) Set(arg0 context.Context, arg1 []cluster.ServerInfo) error
Set mocks base method
type MockServerStoreMockRecorder ¶
type MockServerStoreMockRecorder struct {
// contains filtered or unexported fields
}
MockServerStoreMockRecorder is the mock recorder for MockServerStore
func (*MockServerStoreMockRecorder) Get ¶
func (mr *MockServerStoreMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockServerStoreMockRecorder) Set ¶
func (mr *MockServerStoreMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
Set indicates an expected call of Set
type MockSleeper ¶
type MockSleeper struct {
// contains filtered or unexported fields
}
MockSleeper is a mock of Sleeper interface
func NewMockSleeper ¶
func NewMockSleeper(ctrl *gomock.Controller) *MockSleeper
NewMockSleeper creates a new mock instance
func (*MockSleeper) EXPECT ¶
func (m *MockSleeper) EXPECT() *MockSleeperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockSleeperMockRecorder ¶
type MockSleeperMockRecorder struct {
// contains filtered or unexported fields
}
MockSleeperMockRecorder is the mock recorder for MockSleeper
func (*MockSleeperMockRecorder) Sleep ¶
func (mr *MockSleeperMockRecorder) Sleep(arg0 interface{}) *gomock.Call
Sleep indicates an expected call of Sleep
type MockStoreProvider ¶
type MockStoreProvider struct {
// contains filtered or unexported fields
}
MockStoreProvider is a mock of StoreProvider interface
func NewMockStoreProvider ¶
func NewMockStoreProvider(ctrl *gomock.Controller) *MockStoreProvider
NewMockStoreProvider creates a new mock instance
func (*MockStoreProvider) Disk ¶
func (m *MockStoreProvider) Disk(arg0 database.DB) (cluster.ServerStore, error)
Disk mocks base method
func (*MockStoreProvider) EXPECT ¶
func (m *MockStoreProvider) EXPECT() *MockStoreProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockStoreProvider) Memory ¶
func (m *MockStoreProvider) Memory() cluster.ServerStore
Memory mocks base method
type MockStoreProviderMockRecorder ¶
type MockStoreProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreProviderMockRecorder is the mock recorder for MockStoreProvider
func (*MockStoreProviderMockRecorder) Disk ¶
func (mr *MockStoreProviderMockRecorder) Disk(arg0 interface{}) *gomock.Call
Disk indicates an expected call of Disk
func (*MockStoreProviderMockRecorder) Memory ¶
func (mr *MockStoreProviderMockRecorder) Memory() *gomock.Call
Memory indicates an expected call of Memory
type MockTx ¶
type MockTx struct {
// contains filtered or unexported fields
}
MockTx is a mock of Tx interface
func NewMockTx ¶
func NewMockTx(ctrl *gomock.Controller) *MockTx
NewMockTx creates a new mock instance
func (*MockTx) EXPECT ¶
func (m *MockTx) EXPECT() *MockTxMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockTxMockRecorder ¶
type MockTxMockRecorder struct {
// contains filtered or unexported fields
}
MockTxMockRecorder is the mock recorder for MockTx
func (*MockTxMockRecorder) Commit ¶
func (mr *MockTxMockRecorder) Commit() *gomock.Call
Commit indicates an expected call of Commit
func (*MockTxMockRecorder) Exec ¶
func (mr *MockTxMockRecorder) Exec(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Exec indicates an expected call of Exec
func (*MockTxMockRecorder) Query ¶
func (mr *MockTxMockRecorder) Query(arg0 interface{}, arg1 ...interface{}) *gomock.Call
Query indicates an expected call of Query
func (*MockTxMockRecorder) Rollback ¶
func (mr *MockTxMockRecorder) Rollback() *gomock.Call
Rollback indicates an expected call of Rollback