Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockCoordShardinfo
- func (m *MockCoordShardinfo) DB() string
- func (m *MockCoordShardinfo) DataPending() bool
- func (m *MockCoordShardinfo) EXPECT() *MockCoordShardinfoMockRecorder
- func (m *MockCoordShardinfo) ID() uint
- func (m *MockCoordShardinfo) InstanceHostname() string
- func (m *MockCoordShardinfo) ListPreparedStatements() []shard.PreparedStatementsMgrDescriptor
- func (m *MockCoordShardinfo) Pid() uint32
- func (m *MockCoordShardinfo) Router() string
- func (m *MockCoordShardinfo) ShardKeyName() string
- func (m *MockCoordShardinfo) Sync() int64
- func (m *MockCoordShardinfo) TxServed() int64
- func (m *MockCoordShardinfo) TxStatus() txstatus.TXStatus
- func (m *MockCoordShardinfo) Usr() string
- type MockCoordShardinfoMockRecorder
- func (mr *MockCoordShardinfoMockRecorder) DB() *gomock.Call
- func (mr *MockCoordShardinfoMockRecorder) DataPending() *gomock.Call
- func (mr *MockCoordShardinfoMockRecorder) ID() *gomock.Call
- func (mr *MockCoordShardinfoMockRecorder) InstanceHostname() *gomock.Call
- func (mr *MockCoordShardinfoMockRecorder) ListPreparedStatements() *gomock.Call
- func (mr *MockCoordShardinfoMockRecorder) Pid() *gomock.Call
- func (mr *MockCoordShardinfoMockRecorder) Router() *gomock.Call
- func (mr *MockCoordShardinfoMockRecorder) ShardKeyName() *gomock.Call
- func (mr *MockCoordShardinfoMockRecorder) Sync() *gomock.Call
- func (mr *MockCoordShardinfoMockRecorder) TxServed() *gomock.Call
- func (mr *MockCoordShardinfoMockRecorder) TxStatus() *gomock.Call
- func (mr *MockCoordShardinfoMockRecorder) Usr() *gomock.Call
- type MockShard
- func (m *MockShard) Cancel() error
- func (m *MockShard) Cleanup(rule *config.FrontendRule) error
- func (m *MockShard) Close() error
- func (m *MockShard) DB() string
- func (m *MockShard) DataPending() bool
- func (m *MockShard) EXPECT() *MockShardMockRecorder
- func (m *MockShard) HasPrepareStatement(hash uint64) (bool, *prepstatement.PreparedStatementDescriptor)
- func (m *MockShard) ID() uint
- func (m *MockShard) Instance() conn.DBInstance
- func (m *MockShard) InstanceHostname() string
- func (m *MockShard) ListPreparedStatements() []shard.PreparedStatementsMgrDescriptor
- func (m *MockShard) Name() string
- func (m *MockShard) Params() shard.ParameterSet
- func (m *MockShard) Pid() uint32
- func (m *MockShard) Receive() (pgproto3.BackendMessage, error)
- func (m *MockShard) SHKey() kr.ShardKey
- func (m *MockShard) Send(query pgproto3.FrontendMessage) error
- func (m *MockShard) SetTxStatus(status txstatus.TXStatus)
- func (m *MockShard) ShardKeyName() string
- func (m *MockShard) StorePrepareStatement(hash uint64, d *prepstatement.PreparedStatementDefinition, ...)
- func (m *MockShard) Sync() int64
- func (m *MockShard) TxServed() int64
- func (m *MockShard) TxStatus() txstatus.TXStatus
- func (m *MockShard) Usr() string
- type MockShardIterator
- type MockShardIteratorMockRecorder
- type MockShardMockRecorder
- func (mr *MockShardMockRecorder) Cancel() *gomock.Call
- func (mr *MockShardMockRecorder) Cleanup(rule interface{}) *gomock.Call
- func (mr *MockShardMockRecorder) Close() *gomock.Call
- func (mr *MockShardMockRecorder) DB() *gomock.Call
- func (mr *MockShardMockRecorder) DataPending() *gomock.Call
- func (mr *MockShardMockRecorder) HasPrepareStatement(hash interface{}) *gomock.Call
- func (mr *MockShardMockRecorder) ID() *gomock.Call
- func (mr *MockShardMockRecorder) Instance() *gomock.Call
- func (mr *MockShardMockRecorder) InstanceHostname() *gomock.Call
- func (mr *MockShardMockRecorder) ListPreparedStatements() *gomock.Call
- func (mr *MockShardMockRecorder) Name() *gomock.Call
- func (mr *MockShardMockRecorder) Params() *gomock.Call
- func (mr *MockShardMockRecorder) Pid() *gomock.Call
- func (mr *MockShardMockRecorder) Receive() *gomock.Call
- func (mr *MockShardMockRecorder) SHKey() *gomock.Call
- func (mr *MockShardMockRecorder) Send(query interface{}) *gomock.Call
- func (mr *MockShardMockRecorder) SetTxStatus(status interface{}) *gomock.Call
- func (mr *MockShardMockRecorder) ShardKeyName() *gomock.Call
- func (mr *MockShardMockRecorder) StorePrepareStatement(hash, d, rd interface{}) *gomock.Call
- func (mr *MockShardMockRecorder) Sync() *gomock.Call
- func (mr *MockShardMockRecorder) TxServed() *gomock.Call
- func (mr *MockShardMockRecorder) TxStatus() *gomock.Call
- func (mr *MockShardMockRecorder) Usr() *gomock.Call
- type MockShardinfo
- func (m *MockShardinfo) DB() string
- func (m *MockShardinfo) DataPending() bool
- func (m *MockShardinfo) EXPECT() *MockShardinfoMockRecorder
- func (m *MockShardinfo) ID() uint
- func (m *MockShardinfo) InstanceHostname() string
- func (m *MockShardinfo) ListPreparedStatements() []shard.PreparedStatementsMgrDescriptor
- func (m *MockShardinfo) Pid() uint32
- func (m *MockShardinfo) ShardKeyName() string
- func (m *MockShardinfo) Sync() int64
- func (m *MockShardinfo) TxServed() int64
- func (m *MockShardinfo) TxStatus() txstatus.TXStatus
- func (m *MockShardinfo) Usr() string
- type MockShardinfoMockRecorder
- func (mr *MockShardinfoMockRecorder) DB() *gomock.Call
- func (mr *MockShardinfoMockRecorder) DataPending() *gomock.Call
- func (mr *MockShardinfoMockRecorder) ID() *gomock.Call
- func (mr *MockShardinfoMockRecorder) InstanceHostname() *gomock.Call
- func (mr *MockShardinfoMockRecorder) ListPreparedStatements() *gomock.Call
- func (mr *MockShardinfoMockRecorder) Pid() *gomock.Call
- func (mr *MockShardinfoMockRecorder) ShardKeyName() *gomock.Call
- func (mr *MockShardinfoMockRecorder) Sync() *gomock.Call
- func (mr *MockShardinfoMockRecorder) TxServed() *gomock.Call
- func (mr *MockShardinfoMockRecorder) TxStatus() *gomock.Call
- func (mr *MockShardinfoMockRecorder) Usr() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCoordShardinfo ¶
type MockCoordShardinfo struct {
// contains filtered or unexported fields
}
MockCoordShardinfo is a mock of CoordShardinfo interface.
func NewMockCoordShardinfo ¶
func NewMockCoordShardinfo(ctrl *gomock.Controller) *MockCoordShardinfo
NewMockCoordShardinfo creates a new mock instance.
func (*MockCoordShardinfo) DataPending ¶
func (m *MockCoordShardinfo) DataPending() bool
DataPending mocks base method.
func (*MockCoordShardinfo) EXPECT ¶
func (m *MockCoordShardinfo) EXPECT() *MockCoordShardinfoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCoordShardinfo) InstanceHostname ¶
func (m *MockCoordShardinfo) InstanceHostname() string
InstanceHostname mocks base method.
func (*MockCoordShardinfo) ListPreparedStatements ¶
func (m *MockCoordShardinfo) ListPreparedStatements() []shard.PreparedStatementsMgrDescriptor
ListPreparedStatements mocks base method.
func (*MockCoordShardinfo) Router ¶
func (m *MockCoordShardinfo) Router() string
Router mocks base method.
func (*MockCoordShardinfo) ShardKeyName ¶
func (m *MockCoordShardinfo) ShardKeyName() string
ShardKeyName mocks base method.
func (*MockCoordShardinfo) TxServed ¶
func (m *MockCoordShardinfo) TxServed() int64
TxServed mocks base method.
func (*MockCoordShardinfo) TxStatus ¶
func (m *MockCoordShardinfo) TxStatus() txstatus.TXStatus
TxStatus mocks base method.
type MockCoordShardinfoMockRecorder ¶
type MockCoordShardinfoMockRecorder struct {
// contains filtered or unexported fields
}
MockCoordShardinfoMockRecorder is the mock recorder for MockCoordShardinfo.
func (*MockCoordShardinfoMockRecorder) DB ¶
func (mr *MockCoordShardinfoMockRecorder) DB() *gomock.Call
DB indicates an expected call of DB.
func (*MockCoordShardinfoMockRecorder) DataPending ¶
func (mr *MockCoordShardinfoMockRecorder) DataPending() *gomock.Call
DataPending indicates an expected call of DataPending.
func (*MockCoordShardinfoMockRecorder) ID ¶
func (mr *MockCoordShardinfoMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockCoordShardinfoMockRecorder) InstanceHostname ¶
func (mr *MockCoordShardinfoMockRecorder) InstanceHostname() *gomock.Call
InstanceHostname indicates an expected call of InstanceHostname.
func (*MockCoordShardinfoMockRecorder) ListPreparedStatements ¶
func (mr *MockCoordShardinfoMockRecorder) ListPreparedStatements() *gomock.Call
ListPreparedStatements indicates an expected call of ListPreparedStatements.
func (*MockCoordShardinfoMockRecorder) Pid ¶
func (mr *MockCoordShardinfoMockRecorder) Pid() *gomock.Call
Pid indicates an expected call of Pid.
func (*MockCoordShardinfoMockRecorder) Router ¶
func (mr *MockCoordShardinfoMockRecorder) Router() *gomock.Call
Router indicates an expected call of Router.
func (*MockCoordShardinfoMockRecorder) ShardKeyName ¶
func (mr *MockCoordShardinfoMockRecorder) ShardKeyName() *gomock.Call
ShardKeyName indicates an expected call of ShardKeyName.
func (*MockCoordShardinfoMockRecorder) Sync ¶
func (mr *MockCoordShardinfoMockRecorder) Sync() *gomock.Call
Sync indicates an expected call of Sync.
func (*MockCoordShardinfoMockRecorder) TxServed ¶
func (mr *MockCoordShardinfoMockRecorder) TxServed() *gomock.Call
TxServed indicates an expected call of TxServed.
func (*MockCoordShardinfoMockRecorder) TxStatus ¶
func (mr *MockCoordShardinfoMockRecorder) TxStatus() *gomock.Call
TxStatus indicates an expected call of TxStatus.
func (*MockCoordShardinfoMockRecorder) Usr ¶
func (mr *MockCoordShardinfoMockRecorder) Usr() *gomock.Call
Usr indicates an expected call of Usr.
type MockShard ¶
type MockShard struct {
// contains filtered or unexported fields
}
MockShard is a mock of Shard interface.
func NewMockShard ¶
func NewMockShard(ctrl *gomock.Controller) *MockShard
NewMockShard creates a new mock instance.
func (*MockShard) Cleanup ¶
func (m *MockShard) Cleanup(rule *config.FrontendRule) error
Cleanup mocks base method.
func (*MockShard) DataPending ¶
DataPending mocks base method.
func (*MockShard) EXPECT ¶
func (m *MockShard) EXPECT() *MockShardMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockShard) HasPrepareStatement ¶
func (m *MockShard) HasPrepareStatement(hash uint64) (bool, *prepstatement.PreparedStatementDescriptor)
HasPrepareStatement mocks base method.
func (*MockShard) Instance ¶
func (m *MockShard) Instance() conn.DBInstance
Instance mocks base method.
func (*MockShard) InstanceHostname ¶
InstanceHostname mocks base method.
func (*MockShard) ListPreparedStatements ¶
func (m *MockShard) ListPreparedStatements() []shard.PreparedStatementsMgrDescriptor
ListPreparedStatements mocks base method.
func (*MockShard) Params ¶
func (m *MockShard) Params() shard.ParameterSet
Params mocks base method.
func (*MockShard) Receive ¶
func (m *MockShard) Receive() (pgproto3.BackendMessage, error)
Receive mocks base method.
func (*MockShard) Send ¶
func (m *MockShard) Send(query pgproto3.FrontendMessage) error
Send mocks base method.
func (*MockShard) SetTxStatus ¶
SetTxStatus mocks base method.
func (*MockShard) ShardKeyName ¶
ShardKeyName mocks base method.
func (*MockShard) StorePrepareStatement ¶
func (m *MockShard) StorePrepareStatement(hash uint64, d *prepstatement.PreparedStatementDefinition, rd *prepstatement.PreparedStatementDescriptor)
StorePrepareStatement mocks base method.
type MockShardIterator ¶
type MockShardIterator struct {
// contains filtered or unexported fields
}
MockShardIterator is a mock of ShardIterator interface.
func NewMockShardIterator ¶
func NewMockShardIterator(ctrl *gomock.Controller) *MockShardIterator
NewMockShardIterator creates a new mock instance.
func (*MockShardIterator) EXPECT ¶
func (m *MockShardIterator) EXPECT() *MockShardIteratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockShardIteratorMockRecorder ¶
type MockShardIteratorMockRecorder struct {
// contains filtered or unexported fields
}
MockShardIteratorMockRecorder is the mock recorder for MockShardIterator.
func (*MockShardIteratorMockRecorder) ForEach ¶
func (mr *MockShardIteratorMockRecorder) ForEach(cb interface{}) *gomock.Call
ForEach indicates an expected call of ForEach.
type MockShardMockRecorder ¶
type MockShardMockRecorder struct {
// contains filtered or unexported fields
}
MockShardMockRecorder is the mock recorder for MockShard.
func (*MockShardMockRecorder) Cancel ¶
func (mr *MockShardMockRecorder) Cancel() *gomock.Call
Cancel indicates an expected call of Cancel.
func (*MockShardMockRecorder) Cleanup ¶
func (mr *MockShardMockRecorder) Cleanup(rule interface{}) *gomock.Call
Cleanup indicates an expected call of Cleanup.
func (*MockShardMockRecorder) Close ¶
func (mr *MockShardMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockShardMockRecorder) DB ¶
func (mr *MockShardMockRecorder) DB() *gomock.Call
DB indicates an expected call of DB.
func (*MockShardMockRecorder) DataPending ¶
func (mr *MockShardMockRecorder) DataPending() *gomock.Call
DataPending indicates an expected call of DataPending.
func (*MockShardMockRecorder) HasPrepareStatement ¶
func (mr *MockShardMockRecorder) HasPrepareStatement(hash interface{}) *gomock.Call
HasPrepareStatement indicates an expected call of HasPrepareStatement.
func (*MockShardMockRecorder) ID ¶
func (mr *MockShardMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockShardMockRecorder) Instance ¶
func (mr *MockShardMockRecorder) Instance() *gomock.Call
Instance indicates an expected call of Instance.
func (*MockShardMockRecorder) InstanceHostname ¶
func (mr *MockShardMockRecorder) InstanceHostname() *gomock.Call
InstanceHostname indicates an expected call of InstanceHostname.
func (*MockShardMockRecorder) ListPreparedStatements ¶
func (mr *MockShardMockRecorder) ListPreparedStatements() *gomock.Call
ListPreparedStatements indicates an expected call of ListPreparedStatements.
func (*MockShardMockRecorder) Name ¶
func (mr *MockShardMockRecorder) Name() *gomock.Call
Name indicates an expected call of Name.
func (*MockShardMockRecorder) Params ¶
func (mr *MockShardMockRecorder) Params() *gomock.Call
Params indicates an expected call of Params.
func (*MockShardMockRecorder) Pid ¶
func (mr *MockShardMockRecorder) Pid() *gomock.Call
Pid indicates an expected call of Pid.
func (*MockShardMockRecorder) Receive ¶
func (mr *MockShardMockRecorder) Receive() *gomock.Call
Receive indicates an expected call of Receive.
func (*MockShardMockRecorder) SHKey ¶
func (mr *MockShardMockRecorder) SHKey() *gomock.Call
SHKey indicates an expected call of SHKey.
func (*MockShardMockRecorder) Send ¶
func (mr *MockShardMockRecorder) Send(query interface{}) *gomock.Call
Send indicates an expected call of Send.
func (*MockShardMockRecorder) SetTxStatus ¶
func (mr *MockShardMockRecorder) SetTxStatus(status interface{}) *gomock.Call
SetTxStatus indicates an expected call of SetTxStatus.
func (*MockShardMockRecorder) ShardKeyName ¶
func (mr *MockShardMockRecorder) ShardKeyName() *gomock.Call
ShardKeyName indicates an expected call of ShardKeyName.
func (*MockShardMockRecorder) StorePrepareStatement ¶
func (mr *MockShardMockRecorder) StorePrepareStatement(hash, d, rd interface{}) *gomock.Call
StorePrepareStatement indicates an expected call of StorePrepareStatement.
func (*MockShardMockRecorder) Sync ¶
func (mr *MockShardMockRecorder) Sync() *gomock.Call
Sync indicates an expected call of Sync.
func (*MockShardMockRecorder) TxServed ¶
func (mr *MockShardMockRecorder) TxServed() *gomock.Call
TxServed indicates an expected call of TxServed.
func (*MockShardMockRecorder) TxStatus ¶
func (mr *MockShardMockRecorder) TxStatus() *gomock.Call
TxStatus indicates an expected call of TxStatus.
func (*MockShardMockRecorder) Usr ¶
func (mr *MockShardMockRecorder) Usr() *gomock.Call
Usr indicates an expected call of Usr.
type MockShardinfo ¶
type MockShardinfo struct {
// contains filtered or unexported fields
}
MockShardinfo is a mock of Shardinfo interface.
func NewMockShardinfo ¶
func NewMockShardinfo(ctrl *gomock.Controller) *MockShardinfo
NewMockShardinfo creates a new mock instance.
func (*MockShardinfo) DataPending ¶
func (m *MockShardinfo) DataPending() bool
DataPending mocks base method.
func (*MockShardinfo) EXPECT ¶
func (m *MockShardinfo) EXPECT() *MockShardinfoMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockShardinfo) InstanceHostname ¶
func (m *MockShardinfo) InstanceHostname() string
InstanceHostname mocks base method.
func (*MockShardinfo) ListPreparedStatements ¶
func (m *MockShardinfo) ListPreparedStatements() []shard.PreparedStatementsMgrDescriptor
ListPreparedStatements mocks base method.
func (*MockShardinfo) ShardKeyName ¶
func (m *MockShardinfo) ShardKeyName() string
ShardKeyName mocks base method.
func (*MockShardinfo) TxServed ¶
func (m *MockShardinfo) TxServed() int64
TxServed mocks base method.
func (*MockShardinfo) TxStatus ¶
func (m *MockShardinfo) TxStatus() txstatus.TXStatus
TxStatus mocks base method.
type MockShardinfoMockRecorder ¶
type MockShardinfoMockRecorder struct {
// contains filtered or unexported fields
}
MockShardinfoMockRecorder is the mock recorder for MockShardinfo.
func (*MockShardinfoMockRecorder) DB ¶
func (mr *MockShardinfoMockRecorder) DB() *gomock.Call
DB indicates an expected call of DB.
func (*MockShardinfoMockRecorder) DataPending ¶
func (mr *MockShardinfoMockRecorder) DataPending() *gomock.Call
DataPending indicates an expected call of DataPending.
func (*MockShardinfoMockRecorder) ID ¶
func (mr *MockShardinfoMockRecorder) ID() *gomock.Call
ID indicates an expected call of ID.
func (*MockShardinfoMockRecorder) InstanceHostname ¶
func (mr *MockShardinfoMockRecorder) InstanceHostname() *gomock.Call
InstanceHostname indicates an expected call of InstanceHostname.
func (*MockShardinfoMockRecorder) ListPreparedStatements ¶
func (mr *MockShardinfoMockRecorder) ListPreparedStatements() *gomock.Call
ListPreparedStatements indicates an expected call of ListPreparedStatements.
func (*MockShardinfoMockRecorder) Pid ¶
func (mr *MockShardinfoMockRecorder) Pid() *gomock.Call
Pid indicates an expected call of Pid.
func (*MockShardinfoMockRecorder) ShardKeyName ¶
func (mr *MockShardinfoMockRecorder) ShardKeyName() *gomock.Call
ShardKeyName indicates an expected call of ShardKeyName.
func (*MockShardinfoMockRecorder) Sync ¶
func (mr *MockShardinfoMockRecorder) Sync() *gomock.Call
Sync indicates an expected call of Sync.
func (*MockShardinfoMockRecorder) TxServed ¶
func (mr *MockShardinfoMockRecorder) TxServed() *gomock.Call
TxServed indicates an expected call of TxServed.
func (*MockShardinfoMockRecorder) TxStatus ¶
func (mr *MockShardinfoMockRecorder) TxStatus() *gomock.Call
TxStatus indicates an expected call of TxStatus.
func (*MockShardinfoMockRecorder) Usr ¶
func (mr *MockShardinfoMockRecorder) Usr() *gomock.Call
Usr indicates an expected call of Usr.