Documentation ¶
Overview ¶
Package mock_pg is a generated GoMock package.
Index ¶
- type MockCluster
- func (m *MockCluster) Alive() (bool, error)
- func (m *MockCluster) Backup(host string, port int) error
- func (m *MockCluster) EXPECT() *MockClusterMockRecorder
- func (m *MockCluster) InRecovery() (bool, error)
- func (m *MockCluster) MasterInfo() (*pg.ConnectionInfo, error)
- func (m *MockCluster) Promote() error
- func (m *MockCluster) Start() error
- func (m *MockCluster) Stop() error
- func (m *MockCluster) Version() (int, int, error)
- type MockClusterMockRecorder
- func (mr *MockClusterMockRecorder) Alive() *gomock.Call
- func (mr *MockClusterMockRecorder) Backup(host, port interface{}) *gomock.Call
- func (mr *MockClusterMockRecorder) InRecovery() *gomock.Call
- func (mr *MockClusterMockRecorder) MasterInfo() *gomock.Call
- func (mr *MockClusterMockRecorder) Promote() *gomock.Call
- func (mr *MockClusterMockRecorder) Start() *gomock.Call
- func (mr *MockClusterMockRecorder) Stop() *gomock.Call
- func (mr *MockClusterMockRecorder) Version() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCluster ¶
type MockCluster struct {
// contains filtered or unexported fields
}
MockCluster is a mock of Cluster interface.
func NewMockCluster ¶
func NewMockCluster(ctrl *gomock.Controller) *MockCluster
NewMockCluster creates a new mock instance.
func (*MockCluster) Backup ¶
func (m *MockCluster) Backup(host string, port int) error
Backup mocks base method.
func (*MockCluster) EXPECT ¶
func (m *MockCluster) EXPECT() *MockClusterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCluster) InRecovery ¶
func (m *MockCluster) InRecovery() (bool, error)
InRecovery mocks base method.
func (*MockCluster) MasterInfo ¶
func (m *MockCluster) MasterInfo() (*pg.ConnectionInfo, error)
MasterInfo mocks base method.
type MockClusterMockRecorder ¶
type MockClusterMockRecorder struct {
// contains filtered or unexported fields
}
MockClusterMockRecorder is the mock recorder for MockCluster.
func (*MockClusterMockRecorder) Alive ¶
func (mr *MockClusterMockRecorder) Alive() *gomock.Call
Alive indicates an expected call of Alive.
func (*MockClusterMockRecorder) Backup ¶
func (mr *MockClusterMockRecorder) Backup(host, port interface{}) *gomock.Call
Backup indicates an expected call of Backup.
func (*MockClusterMockRecorder) InRecovery ¶
func (mr *MockClusterMockRecorder) InRecovery() *gomock.Call
InRecovery indicates an expected call of InRecovery.
func (*MockClusterMockRecorder) MasterInfo ¶
func (mr *MockClusterMockRecorder) MasterInfo() *gomock.Call
MasterInfo indicates an expected call of MasterInfo.
func (*MockClusterMockRecorder) Promote ¶
func (mr *MockClusterMockRecorder) Promote() *gomock.Call
Promote indicates an expected call of Promote.
func (*MockClusterMockRecorder) Start ¶
func (mr *MockClusterMockRecorder) Start() *gomock.Call
Start indicates an expected call of Start.
func (*MockClusterMockRecorder) Stop ¶
func (mr *MockClusterMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.
func (*MockClusterMockRecorder) Version ¶
func (mr *MockClusterMockRecorder) Version() *gomock.Call
Version indicates an expected call of Version.