Documentation ¶
Overview ¶
Package tools is a generated GoMock package.
Index ¶
- type MockPGXClient
- type MockPGXClientMockRecorder
- type MockPGXPool
- type MockPGXRow
- type MockPGXRows
- func (m *MockPGXRows) Close()
- func (m *MockPGXRows) CommandTag() pgconn.CommandTag
- func (m *MockPGXRows) Err() error
- func (m *MockPGXRows) FieldDescriptions() []pgconn.FieldDescription
- func (m *MockPGXRows) Next() bool
- func (m *MockPGXRows) RawValues() [][]byte
- func (m *MockPGXRows) Scan(dest ...interface{}) error
- func (m *MockPGXRows) Values() ([]interface{}, error)
- type PGXClient
- type PGXPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockPGXClient ¶
type MockPGXClient struct {
// contains filtered or unexported fields
}
MockPGXClient is a mock of PGXClient interface
func NewMockPGXClient ¶
func NewMockPGXClient(ctrl *gomock.Controller) *MockPGXClient
NewMockPGXClient creates a new mock instance
func (*MockPGXClient) EXPECT ¶
func (m *MockPGXClient) EXPECT() *MockPGXClientMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
type MockPGXClientMockRecorder ¶
type MockPGXClientMockRecorder struct {
// contains filtered or unexported fields
}
MockPGXClientMockRecorder is the mock recorder for MockPGXClient
func (*MockPGXClientMockRecorder) GetMaster ¶
func (mr *MockPGXClientMockRecorder) GetMaster(ctx interface{}) *gomock.Call
GetMaster indicates an expected call of GetMaster
func (*MockPGXClientMockRecorder) GetSlave ¶
func (mr *MockPGXClientMockRecorder) GetSlave(ctx interface{}) *gomock.Call
GetSlave indicates an expected call of GetSlave
type MockPGXPool ¶
MockPGXPool represents a mock implementation of *pgxpool.Pool
type MockPGXRow ¶
type MockPGXRow struct {
// contains filtered or unexported fields
}
MockPGXRow represents a mock implementation of pgx.Row
func NewMockPGXRow ¶
func NewMockPGXRow(columns []string, values []interface{}) *MockPGXRow
func (*MockPGXRow) Scan ¶
func (m *MockPGXRow) Scan(dest ...interface{}) error
type MockPGXRows ¶
type MockPGXRows struct {
// contains filtered or unexported fields
}
MockPGXRows represents a mock implementation of pgx.Rows
func NewMockPGXRows ¶
func NewMockPGXRows(columns []string, data [][]interface{}) *MockPGXRows
func (*MockPGXRows) Close ¶
func (m *MockPGXRows) Close()
func (*MockPGXRows) CommandTag ¶
func (m *MockPGXRows) CommandTag() pgconn.CommandTag
func (*MockPGXRows) Err ¶
func (m *MockPGXRows) Err() error
func (*MockPGXRows) FieldDescriptions ¶
func (m *MockPGXRows) FieldDescriptions() []pgconn.FieldDescription
func (*MockPGXRows) Next ¶
func (m *MockPGXRows) Next() bool
func (*MockPGXRows) RawValues ¶
func (m *MockPGXRows) RawValues() [][]byte
func (*MockPGXRows) Scan ¶
func (m *MockPGXRows) Scan(dest ...interface{}) error
func (*MockPGXRows) Values ¶
func (m *MockPGXRows) Values() ([]interface{}, error)
Click to show internal directories.
Click to hide internal directories.