mock

package
v0.0.0-...-a56bf6c Latest Latest
Warning

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

Go to latest
Published: Dec 25, 2024 License: PostgreSQL Imports: 6 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

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

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

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

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

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

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

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

func (m *MockPool) Connection(clid uint, shardKey kr.ShardKey) (shard.Shard, error)

Connection mocks base method.

func (*MockPool) Discard

func (m *MockPool) Discard(sh shard.Shard) error

Discard mocks base method.

func (*MockPool) EXPECT

func (m *MockPool) EXPECT() *MockPoolMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPool) ForEach

func (m *MockPool) ForEach(cb func(shard.Shardinfo) error) error

ForEach mocks base method.

func (*MockPool) Put

func (m *MockPool) Put(host shard.Shard) error

Put mocks base method.

func (*MockPool) View

func (m *MockPool) View() pool.Statistics

View mocks base method.

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

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.

Jump to

Keyboard shortcuts

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