mock_pg

package
v0.0.0-...-86e4b03 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 15, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock_pg is a generated GoMock package.

Index

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) Alive

func (m *MockCluster) Alive() (bool, error)

Alive mocks base method.

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.

func (*MockCluster) Promote

func (m *MockCluster) Promote() error

Promote mocks base method.

func (*MockCluster) Start

func (m *MockCluster) Start() error

Start mocks base method.

func (*MockCluster) Stop

func (m *MockCluster) Stop() error

Stop mocks base method.

func (*MockCluster) Version

func (m *MockCluster) Version() (int, int, error)

Version 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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL