Documentation ¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockConnectionKepper
- type MockConnectionKepperMockRecorder
- type MockMultiShardPool
- func (m *MockMultiShardPool) ConnectionHost(clid uint, shardKey kr.ShardKey, host config.Host) (shard.Shard, error)
- func (m *MockMultiShardPool) Discard(sh shard.Shard) error
- func (m *MockMultiShardPool) EXPECT() *MockMultiShardPoolMockRecorder
- func (m *MockMultiShardPool) ForEach(cb func(shard.Shardinfo) error) error
- func (m *MockMultiShardPool) ForEachPool(cb func(pool.Pool) error) error
- func (m *MockMultiShardPool) Put(host shard.Shard) error
- func (m *MockMultiShardPool) SetRule(rule *config.BackendRule)
- func (m *MockMultiShardPool) View() pool.Statistics
- type MockMultiShardPoolMockRecorder
- func (mr *MockMultiShardPoolMockRecorder) ConnectionHost(clid, shardKey, host interface{}) *gomock.Call
- func (mr *MockMultiShardPoolMockRecorder) Discard(sh interface{}) *gomock.Call
- func (mr *MockMultiShardPoolMockRecorder) ForEach(cb interface{}) *gomock.Call
- func (mr *MockMultiShardPoolMockRecorder) ForEachPool(cb interface{}) *gomock.Call
- func (mr *MockMultiShardPoolMockRecorder) Put(host interface{}) *gomock.Call
- func (mr *MockMultiShardPoolMockRecorder) SetRule(rule interface{}) *gomock.Call
- func (mr *MockMultiShardPoolMockRecorder) View() *gomock.Call
- type MockPool
- func (m *MockPool) Connection(clid uint, shardKey kr.ShardKey) (shard.Shard, error)
- func (m *MockPool) Discard(sh shard.Shard) error
- func (m *MockPool) EXPECT() *MockPoolMockRecorder
- func (m *MockPool) ForEach(cb func(shard.Shardinfo) error) error
- func (m *MockPool) Put(host shard.Shard) error
- func (m *MockPool) View() pool.Statistics
- type MockPoolIterator
- type MockPoolIteratorMockRecorder
- type MockPoolMockRecorder
- func (mr *MockPoolMockRecorder) Connection(clid, shardKey interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) Discard(sh interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) ForEach(cb interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) Put(host interface{}) *gomock.Call
- func (mr *MockPoolMockRecorder) View() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockConnectionKepper ¶
type MockConnectionKepper struct {
// contains filtered or unexported fields
}
MockConnectionKepper is a mock of ConnectionKepper interface.
func NewMockConnectionKepper ¶
func NewMockConnectionKepper(ctrl *gomock.Controller) *MockConnectionKepper
NewMockConnectionKepper creates a new mock instance.
func (*MockConnectionKepper) Discard ¶
func (m *MockConnectionKepper) Discard(sh shard.Shard) error
Discard mocks base method.
func (*MockConnectionKepper) EXPECT ¶
func (m *MockConnectionKepper) EXPECT() *MockConnectionKepperMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConnectionKepper) Put ¶
func (m *MockConnectionKepper) Put(host shard.Shard) error
Put mocks base method.
func (*MockConnectionKepper) View ¶
func (m *MockConnectionKepper) View() pool.Statistics
View mocks base method.
type MockConnectionKepperMockRecorder ¶
type MockConnectionKepperMockRecorder struct {
// contains filtered or unexported fields
}
MockConnectionKepperMockRecorder is the mock recorder for MockConnectionKepper.
func (*MockConnectionKepperMockRecorder) Discard ¶
func (mr *MockConnectionKepperMockRecorder) Discard(sh interface{}) *gomock.Call
Discard indicates an expected call of Discard.
func (*MockConnectionKepperMockRecorder) Put ¶
func (mr *MockConnectionKepperMockRecorder) Put(host interface{}) *gomock.Call
Put indicates an expected call of Put.
func (*MockConnectionKepperMockRecorder) View ¶
func (mr *MockConnectionKepperMockRecorder) View() *gomock.Call
View indicates an expected call of View.
type MockMultiShardPool ¶
type MockMultiShardPool struct {
// contains filtered or unexported fields
}
MockMultiShardPool is a mock of MultiShardPool interface.
func NewMockMultiShardPool ¶
func NewMockMultiShardPool(ctrl *gomock.Controller) *MockMultiShardPool
NewMockMultiShardPool creates a new mock instance.
func (*MockMultiShardPool) ConnectionHost ¶
func (m *MockMultiShardPool) ConnectionHost(clid uint, shardKey kr.ShardKey, host config.Host) (shard.Shard, error)
ConnectionHost mocks base method.
func (*MockMultiShardPool) Discard ¶
func (m *MockMultiShardPool) Discard(sh shard.Shard) error
Discard mocks base method.
func (*MockMultiShardPool) EXPECT ¶
func (m *MockMultiShardPool) EXPECT() *MockMultiShardPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMultiShardPool) ForEach ¶
func (m *MockMultiShardPool) ForEach(cb func(shard.Shardinfo) error) error
ForEach mocks base method.
func (*MockMultiShardPool) ForEachPool ¶
func (m *MockMultiShardPool) ForEachPool(cb func(pool.Pool) error) error
ForEachPool mocks base method.
func (*MockMultiShardPool) Put ¶
func (m *MockMultiShardPool) Put(host shard.Shard) error
Put mocks base method.
func (*MockMultiShardPool) SetRule ¶
func (m *MockMultiShardPool) SetRule(rule *config.BackendRule)
SetRule mocks base method.
func (*MockMultiShardPool) View ¶
func (m *MockMultiShardPool) View() pool.Statistics
View mocks base method.
type MockMultiShardPoolMockRecorder ¶
type MockMultiShardPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockMultiShardPoolMockRecorder is the mock recorder for MockMultiShardPool.
func (*MockMultiShardPoolMockRecorder) ConnectionHost ¶
func (mr *MockMultiShardPoolMockRecorder) ConnectionHost(clid, shardKey, host interface{}) *gomock.Call
ConnectionHost indicates an expected call of ConnectionHost.
func (*MockMultiShardPoolMockRecorder) Discard ¶
func (mr *MockMultiShardPoolMockRecorder) Discard(sh interface{}) *gomock.Call
Discard indicates an expected call of Discard.
func (*MockMultiShardPoolMockRecorder) ForEach ¶
func (mr *MockMultiShardPoolMockRecorder) ForEach(cb interface{}) *gomock.Call
ForEach indicates an expected call of ForEach.
func (*MockMultiShardPoolMockRecorder) ForEachPool ¶
func (mr *MockMultiShardPoolMockRecorder) ForEachPool(cb interface{}) *gomock.Call
ForEachPool indicates an expected call of ForEachPool.
func (*MockMultiShardPoolMockRecorder) Put ¶
func (mr *MockMultiShardPoolMockRecorder) Put(host interface{}) *gomock.Call
Put indicates an expected call of Put.
func (*MockMultiShardPoolMockRecorder) SetRule ¶
func (mr *MockMultiShardPoolMockRecorder) SetRule(rule interface{}) *gomock.Call
SetRule indicates an expected call of SetRule.
func (*MockMultiShardPoolMockRecorder) View ¶
func (mr *MockMultiShardPoolMockRecorder) View() *gomock.Call
View indicates an expected call of View.
type MockPool ¶
type MockPool struct {
// contains filtered or unexported fields
}
MockPool is a mock of Pool interface.
func NewMockPool ¶
func NewMockPool(ctrl *gomock.Controller) *MockPool
NewMockPool creates a new mock instance.
func (*MockPool) Connection ¶
Connection mocks base method.
func (*MockPool) EXPECT ¶
func (m *MockPool) EXPECT() *MockPoolMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPoolIterator ¶
type MockPoolIterator struct {
// contains filtered or unexported fields
}
MockPoolIterator is a mock of PoolIterator interface.
func NewMockPoolIterator ¶
func NewMockPoolIterator(ctrl *gomock.Controller) *MockPoolIterator
NewMockPoolIterator creates a new mock instance.
func (*MockPoolIterator) EXPECT ¶
func (m *MockPoolIterator) EXPECT() *MockPoolIteratorMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPoolIterator) ForEachPool ¶
func (m *MockPoolIterator) ForEachPool(cb func(pool.Pool) error) error
ForEachPool mocks base method.
type MockPoolIteratorMockRecorder ¶
type MockPoolIteratorMockRecorder struct {
// contains filtered or unexported fields
}
MockPoolIteratorMockRecorder is the mock recorder for MockPoolIterator.
func (*MockPoolIteratorMockRecorder) ForEachPool ¶
func (mr *MockPoolIteratorMockRecorder) ForEachPool(cb interface{}) *gomock.Call
ForEachPool indicates an expected call of ForEachPool.
type MockPoolMockRecorder ¶
type MockPoolMockRecorder struct {
// contains filtered or unexported fields
}
MockPoolMockRecorder is the mock recorder for MockPool.
func (*MockPoolMockRecorder) Connection ¶
func (mr *MockPoolMockRecorder) Connection(clid, shardKey interface{}) *gomock.Call
Connection indicates an expected call of Connection.
func (*MockPoolMockRecorder) Discard ¶
func (mr *MockPoolMockRecorder) Discard(sh interface{}) *gomock.Call
Discard indicates an expected call of Discard.
func (*MockPoolMockRecorder) ForEach ¶
func (mr *MockPoolMockRecorder) ForEach(cb interface{}) *gomock.Call
ForEach indicates an expected call of ForEach.
func (*MockPoolMockRecorder) Put ¶
func (mr *MockPoolMockRecorder) Put(host interface{}) *gomock.Call
Put indicates an expected call of Put.
func (*MockPoolMockRecorder) View ¶
func (mr *MockPoolMockRecorder) View() *gomock.Call
View indicates an expected call of View.