mock

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 4 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 MockCache

type MockCache struct {
	// contains filtered or unexported fields
}

MockCache is a mock of Cache interface.

func NewMockCache

func NewMockCache(ctrl *gomock.Controller) *MockCache

NewMockCache creates a new mock instance.

func (*MockCache) EXPECT

func (m *MockCache) EXPECT() *MockCacheMockRecorder

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

func (*MockCache) Get

func (m *MockCache) Get(key interface{}) (interface{}, error)

Get mocks base method.

func (*MockCache) Put

func (m *MockCache) Put(key, value interface{}, expiration time.Duration) error

Put mocks base method.

type MockCacheMockRecorder

type MockCacheMockRecorder struct {
	// contains filtered or unexported fields
}

MockCacheMockRecorder is the mock recorder for MockCache.

func (*MockCacheMockRecorder) Get

func (mr *MockCacheMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockCacheMockRecorder) Put

func (mr *MockCacheMockRecorder) Put(key, value, expiration interface{}) *gomock.Call

Put indicates an expected call of Put.

type MockCounter added in v0.3.0

type MockCounter struct {
	// contains filtered or unexported fields
}

MockCounter is a mock of Counter interface.

func NewMockCounter added in v0.3.0

func NewMockCounter(ctrl *gomock.Controller) *MockCounter

NewMockCounter creates a new mock instance.

func (*MockCounter) EXPECT added in v0.3.0

func (m *MockCounter) EXPECT() *MockCounterMockRecorder

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

func (*MockCounter) Increment added in v0.3.0

func (m *MockCounter) Increment(key string) (int64, error)

Increment mocks base method.

func (*MockCounter) PFAdd added in v0.3.0

func (m *MockCounter) PFAdd(key string, els ...string) (int64, error)

PFAdd mocks base method.

type MockCounterMockRecorder added in v0.3.0

type MockCounterMockRecorder struct {
	// contains filtered or unexported fields
}

MockCounterMockRecorder is the mock recorder for MockCounter.

func (*MockCounterMockRecorder) Increment added in v0.3.0

func (mr *MockCounterMockRecorder) Increment(key interface{}) *gomock.Call

Increment indicates an expected call of Increment.

func (*MockCounterMockRecorder) PFAdd added in v0.3.0

func (mr *MockCounterMockRecorder) PFAdd(key interface{}, els ...interface{}) *gomock.Call

PFAdd indicates an expected call of PFAdd.

type MockDeleter

type MockDeleter struct {
	// contains filtered or unexported fields
}

MockDeleter is a mock of Deleter interface.

func NewMockDeleter

func NewMockDeleter(ctrl *gomock.Controller) *MockDeleter

NewMockDeleter creates a new mock instance.

func (*MockDeleter) Delete

func (m *MockDeleter) Delete(key string) error

Delete mocks base method.

func (*MockDeleter) EXPECT

func (m *MockDeleter) EXPECT() *MockDeleterMockRecorder

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

type MockDeleterMockRecorder

type MockDeleterMockRecorder struct {
	// contains filtered or unexported fields
}

MockDeleterMockRecorder is the mock recorder for MockDeleter.

func (*MockDeleterMockRecorder) Delete

func (mr *MockDeleterMockRecorder) Delete(key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

type MockExpirer added in v0.3.0

type MockExpirer struct {
	// contains filtered or unexported fields
}

MockExpirer is a mock of Expirer interface.

func NewMockExpirer added in v0.3.0

func NewMockExpirer(ctrl *gomock.Controller) *MockExpirer

NewMockExpirer creates a new mock instance.

func (*MockExpirer) EXPECT added in v0.3.0

func (m *MockExpirer) EXPECT() *MockExpirerMockRecorder

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

func (*MockExpirer) Expire added in v0.3.0

func (m *MockExpirer) Expire(key string, expiration time.Duration) (bool, error)

Expire mocks base method.

type MockExpirerMockRecorder added in v0.3.0

type MockExpirerMockRecorder struct {
	// contains filtered or unexported fields
}

MockExpirerMockRecorder is the mock recorder for MockExpirer.

func (*MockExpirerMockRecorder) Expire added in v0.3.0

func (mr *MockExpirerMockRecorder) Expire(key, expiration interface{}) *gomock.Call

Expire indicates an expected call of Expire.

type MockGetter

type MockGetter struct {
	// contains filtered or unexported fields
}

MockGetter is a mock of Getter interface.

func NewMockGetter

func NewMockGetter(ctrl *gomock.Controller) *MockGetter

NewMockGetter creates a new mock instance.

func (*MockGetter) EXPECT

func (m *MockGetter) EXPECT() *MockGetterMockRecorder

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

func (*MockGetter) Get

func (m *MockGetter) Get(key interface{}) (interface{}, error)

Get mocks base method.

type MockGetterMockRecorder

type MockGetterMockRecorder struct {
	// contains filtered or unexported fields
}

MockGetterMockRecorder is the mock recorder for MockGetter.

func (*MockGetterMockRecorder) Get

func (mr *MockGetterMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

type MockLister

type MockLister struct {
	// contains filtered or unexported fields
}

MockLister is a mock of Lister interface.

func NewMockLister

func NewMockLister(ctrl *gomock.Controller) *MockLister

NewMockLister creates a new mock instance.

func (*MockLister) EXPECT

func (m *MockLister) EXPECT() *MockListerMockRecorder

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

func (*MockLister) Keys

func (m *MockLister) Keys(pattern string, maxSize int) ([]string, error)

Keys mocks base method.

type MockListerMockRecorder

type MockListerMockRecorder struct {
	// contains filtered or unexported fields
}

MockListerMockRecorder is the mock recorder for MockLister.

func (*MockListerMockRecorder) Keys

func (mr *MockListerMockRecorder) Keys(pattern, maxSize interface{}) *gomock.Call

Keys indicates an expected call of Keys.

type MockMultiGetCache

type MockMultiGetCache struct {
	// contains filtered or unexported fields
}

MockMultiGetCache is a mock of MultiGetCache interface.

func NewMockMultiGetCache

func NewMockMultiGetCache(ctrl *gomock.Controller) *MockMultiGetCache

NewMockMultiGetCache creates a new mock instance.

func (*MockMultiGetCache) EXPECT

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

func (*MockMultiGetCache) Get

func (m *MockMultiGetCache) Get(key interface{}) (interface{}, error)

Get mocks base method.

func (*MockMultiGetCache) GetMulti

func (m *MockMultiGetCache) GetMulti(keys interface{}) ([]interface{}, error)

GetMulti mocks base method.

func (*MockMultiGetCache) Put

func (m *MockMultiGetCache) Put(key, value interface{}, expiration time.Duration) error

Put mocks base method.

func (*MockMultiGetCache) Scan

func (m *MockMultiGetCache) Scan(cursor, key, count interface{}) (uint64, []string, error)

Scan mocks base method.

type MockMultiGetCacheMockRecorder

type MockMultiGetCacheMockRecorder struct {
	// contains filtered or unexported fields
}

MockMultiGetCacheMockRecorder is the mock recorder for MockMultiGetCache.

func (*MockMultiGetCacheMockRecorder) Get

func (mr *MockMultiGetCacheMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockMultiGetCacheMockRecorder) GetMulti

func (mr *MockMultiGetCacheMockRecorder) GetMulti(keys interface{}) *gomock.Call

GetMulti indicates an expected call of GetMulti.

func (*MockMultiGetCacheMockRecorder) Put

func (mr *MockMultiGetCacheMockRecorder) Put(key, value, expiration interface{}) *gomock.Call

Put indicates an expected call of Put.

func (*MockMultiGetCacheMockRecorder) Scan

func (mr *MockMultiGetCacheMockRecorder) Scan(cursor, key, count interface{}) *gomock.Call

Scan indicates an expected call of Scan.

type MockMultiGetDeleteCountCache added in v0.3.0

type MockMultiGetDeleteCountCache struct {
	// contains filtered or unexported fields
}

MockMultiGetDeleteCountCache is a mock of MultiGetDeleteCountCache interface.

func NewMockMultiGetDeleteCountCache added in v0.3.0

func NewMockMultiGetDeleteCountCache(ctrl *gomock.Controller) *MockMultiGetDeleteCountCache

NewMockMultiGetDeleteCountCache creates a new mock instance.

func (*MockMultiGetDeleteCountCache) Delete added in v0.3.0

func (m *MockMultiGetDeleteCountCache) Delete(key string) error

Delete mocks base method.

func (*MockMultiGetDeleteCountCache) EXPECT added in v0.3.0

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

func (*MockMultiGetDeleteCountCache) Expire added in v0.3.0

func (m *MockMultiGetDeleteCountCache) Expire(key string, expiration time.Duration) (bool, error)

Expire mocks base method.

func (*MockMultiGetDeleteCountCache) Get added in v0.3.0

func (m *MockMultiGetDeleteCountCache) Get(key interface{}) (interface{}, error)

Get mocks base method.

func (*MockMultiGetDeleteCountCache) GetMulti added in v0.3.0

func (m *MockMultiGetDeleteCountCache) GetMulti(keys interface{}) ([]interface{}, error)

GetMulti mocks base method.

func (*MockMultiGetDeleteCountCache) Increment added in v0.3.0

func (m *MockMultiGetDeleteCountCache) Increment(key string) (int64, error)

Increment mocks base method.

func (*MockMultiGetDeleteCountCache) PFAdd added in v0.3.0

func (m *MockMultiGetDeleteCountCache) PFAdd(key string, els ...string) (int64, error)

PFAdd mocks base method.

func (*MockMultiGetDeleteCountCache) PFCount added in v0.3.0

func (m *MockMultiGetDeleteCountCache) PFCount(keys ...string) (int64, error)

PFCount mocks base method.

func (*MockMultiGetDeleteCountCache) PFMerge added in v0.3.0

func (m *MockMultiGetDeleteCountCache) PFMerge(dest string, keys ...string) error

PFMerge mocks base method.

func (*MockMultiGetDeleteCountCache) Pipeline added in v0.3.0

Pipeline mocks base method.

func (*MockMultiGetDeleteCountCache) Put added in v0.3.0

func (m *MockMultiGetDeleteCountCache) Put(key, value interface{}, expiration time.Duration) error

Put mocks base method.

func (*MockMultiGetDeleteCountCache) Scan added in v0.3.0

func (m *MockMultiGetDeleteCountCache) Scan(cursor, key, count interface{}) (uint64, []string, error)

Scan mocks base method.

type MockMultiGetDeleteCountCacheMockRecorder added in v0.3.0

type MockMultiGetDeleteCountCacheMockRecorder struct {
	// contains filtered or unexported fields
}

MockMultiGetDeleteCountCacheMockRecorder is the mock recorder for MockMultiGetDeleteCountCache.

func (*MockMultiGetDeleteCountCacheMockRecorder) Delete added in v0.3.0

func (mr *MockMultiGetDeleteCountCacheMockRecorder) Delete(key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockMultiGetDeleteCountCacheMockRecorder) Expire added in v0.3.0

func (mr *MockMultiGetDeleteCountCacheMockRecorder) Expire(key, expiration interface{}) *gomock.Call

Expire indicates an expected call of Expire.

func (*MockMultiGetDeleteCountCacheMockRecorder) Get added in v0.3.0

func (mr *MockMultiGetDeleteCountCacheMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockMultiGetDeleteCountCacheMockRecorder) GetMulti added in v0.3.0

func (mr *MockMultiGetDeleteCountCacheMockRecorder) GetMulti(keys interface{}) *gomock.Call

GetMulti indicates an expected call of GetMulti.

func (*MockMultiGetDeleteCountCacheMockRecorder) Increment added in v0.3.0

func (mr *MockMultiGetDeleteCountCacheMockRecorder) Increment(key interface{}) *gomock.Call

Increment indicates an expected call of Increment.

func (*MockMultiGetDeleteCountCacheMockRecorder) PFAdd added in v0.3.0

func (mr *MockMultiGetDeleteCountCacheMockRecorder) PFAdd(key interface{}, els ...interface{}) *gomock.Call

PFAdd indicates an expected call of PFAdd.

func (*MockMultiGetDeleteCountCacheMockRecorder) PFCount added in v0.3.0

func (mr *MockMultiGetDeleteCountCacheMockRecorder) PFCount(keys ...interface{}) *gomock.Call

PFCount indicates an expected call of PFCount.

func (*MockMultiGetDeleteCountCacheMockRecorder) PFMerge added in v0.3.0

func (mr *MockMultiGetDeleteCountCacheMockRecorder) PFMerge(dest interface{}, keys ...interface{}) *gomock.Call

PFMerge indicates an expected call of PFMerge.

func (*MockMultiGetDeleteCountCacheMockRecorder) Pipeline added in v0.3.0

Pipeline indicates an expected call of Pipeline.

func (*MockMultiGetDeleteCountCacheMockRecorder) Put added in v0.3.0

func (mr *MockMultiGetDeleteCountCacheMockRecorder) Put(key, value, expiration interface{}) *gomock.Call

Put indicates an expected call of Put.

func (*MockMultiGetDeleteCountCacheMockRecorder) Scan added in v0.3.0

func (mr *MockMultiGetDeleteCountCacheMockRecorder) Scan(cursor, key, count interface{}) *gomock.Call

Scan indicates an expected call of Scan.

type MockMultiGetter

type MockMultiGetter struct {
	// contains filtered or unexported fields
}

MockMultiGetter is a mock of MultiGetter interface.

func NewMockMultiGetter

func NewMockMultiGetter(ctrl *gomock.Controller) *MockMultiGetter

NewMockMultiGetter creates a new mock instance.

func (*MockMultiGetter) EXPECT

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

func (*MockMultiGetter) GetMulti

func (m *MockMultiGetter) GetMulti(keys interface{}) ([]interface{}, error)

GetMulti mocks base method.

func (*MockMultiGetter) Scan

func (m *MockMultiGetter) Scan(cursor, key, count interface{}) (uint64, []string, error)

Scan mocks base method.

type MockMultiGetterMockRecorder

type MockMultiGetterMockRecorder struct {
	// contains filtered or unexported fields
}

MockMultiGetterMockRecorder is the mock recorder for MockMultiGetter.

func (*MockMultiGetterMockRecorder) GetMulti

func (mr *MockMultiGetterMockRecorder) GetMulti(keys interface{}) *gomock.Call

GetMulti indicates an expected call of GetMulti.

func (*MockMultiGetterMockRecorder) Scan

func (mr *MockMultiGetterMockRecorder) Scan(cursor, key, count interface{}) *gomock.Call

Scan indicates an expected call of Scan.

type MockPFGetter added in v0.3.0

type MockPFGetter struct {
	// contains filtered or unexported fields
}

MockPFGetter is a mock of PFGetter interface.

func NewMockPFGetter added in v0.3.0

func NewMockPFGetter(ctrl *gomock.Controller) *MockPFGetter

NewMockPFGetter creates a new mock instance.

func (*MockPFGetter) EXPECT added in v0.3.0

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

func (*MockPFGetter) PFCount added in v0.3.0

func (m *MockPFGetter) PFCount(keys ...string) (int64, error)

PFCount mocks base method.

type MockPFGetterMockRecorder added in v0.3.0

type MockPFGetterMockRecorder struct {
	// contains filtered or unexported fields
}

MockPFGetterMockRecorder is the mock recorder for MockPFGetter.

func (*MockPFGetterMockRecorder) PFCount added in v0.3.0

func (mr *MockPFGetterMockRecorder) PFCount(keys ...interface{}) *gomock.Call

PFCount indicates an expected call of PFCount.

type MockPFMerger added in v0.3.0

type MockPFMerger struct {
	// contains filtered or unexported fields
}

MockPFMerger is a mock of PFMerger interface.

func NewMockPFMerger added in v0.3.0

func NewMockPFMerger(ctrl *gomock.Controller) *MockPFMerger

NewMockPFMerger creates a new mock instance.

func (*MockPFMerger) EXPECT added in v0.3.0

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

func (*MockPFMerger) PFMerge added in v0.3.0

func (m *MockPFMerger) PFMerge(dest string, keys ...string) error

PFMerge mocks base method.

type MockPFMergerMockRecorder added in v0.3.0

type MockPFMergerMockRecorder struct {
	// contains filtered or unexported fields
}

MockPFMergerMockRecorder is the mock recorder for MockPFMerger.

func (*MockPFMergerMockRecorder) PFMerge added in v0.3.0

func (mr *MockPFMergerMockRecorder) PFMerge(dest interface{}, keys ...interface{}) *gomock.Call

PFMerge indicates an expected call of PFMerge.

type MockPipeLiner added in v0.3.0

type MockPipeLiner struct {
	// contains filtered or unexported fields
}

MockPipeLiner is a mock of PipeLiner interface.

func NewMockPipeLiner added in v0.3.0

func NewMockPipeLiner(ctrl *gomock.Controller) *MockPipeLiner

NewMockPipeLiner creates a new mock instance.

func (*MockPipeLiner) EXPECT added in v0.3.0

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

func (*MockPipeLiner) Pipeline added in v0.3.0

func (m *MockPipeLiner) Pipeline() v3.PipeClient

Pipeline mocks base method.

type MockPipeLinerMockRecorder added in v0.3.0

type MockPipeLinerMockRecorder struct {
	// contains filtered or unexported fields
}

MockPipeLinerMockRecorder is the mock recorder for MockPipeLiner.

func (*MockPipeLinerMockRecorder) Pipeline added in v0.3.0

func (mr *MockPipeLinerMockRecorder) Pipeline() *gomock.Call

Pipeline indicates an expected call of Pipeline.

type MockPutter

type MockPutter struct {
	// contains filtered or unexported fields
}

MockPutter is a mock of Putter interface.

func NewMockPutter

func NewMockPutter(ctrl *gomock.Controller) *MockPutter

NewMockPutter creates a new mock instance.

func (*MockPutter) EXPECT

func (m *MockPutter) EXPECT() *MockPutterMockRecorder

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

func (*MockPutter) Put

func (m *MockPutter) Put(key, value interface{}, expiration time.Duration) error

Put mocks base method.

type MockPutterMockRecorder

type MockPutterMockRecorder struct {
	// contains filtered or unexported fields
}

MockPutterMockRecorder is the mock recorder for MockPutter.

func (*MockPutterMockRecorder) Put

func (mr *MockPutterMockRecorder) Put(key, value, expiration interface{}) *gomock.Call

Put indicates an expected call of Put.

Jump to

Keyboard shortcuts

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