Documentation
¶
Overview ¶
Package mock is a generated GoMock package.
Index ¶
- type MockCache
- type MockCacheMockRecorder
- type MockCounter
- type MockCounterMockRecorder
- type MockDeleter
- type MockDeleterMockRecorder
- type MockExpirer
- type MockExpirerMockRecorder
- type MockGetter
- type MockGetterMockRecorder
- type MockLister
- type MockListerMockRecorder
- type MockMultiGetCache
- func (m *MockMultiGetCache) EXPECT() *MockMultiGetCacheMockRecorder
- func (m *MockMultiGetCache) Get(key any) (any, error)
- func (m *MockMultiGetCache) GetMulti(keys any, ignoreNotFound bool) ([]any, error)
- func (m *MockMultiGetCache) Put(key, value any, expiration time.Duration) error
- func (m *MockMultiGetCache) Scan(cursor, key, count any) (uint64, []string, error)
- type MockMultiGetCacheMockRecorder
- func (mr *MockMultiGetCacheMockRecorder) Get(key any) *gomock.Call
- func (mr *MockMultiGetCacheMockRecorder) GetMulti(keys, ignoreNotFound any) *gomock.Call
- func (mr *MockMultiGetCacheMockRecorder) Put(key, value, expiration any) *gomock.Call
- func (mr *MockMultiGetCacheMockRecorder) Scan(cursor, key, count any) *gomock.Call
- type MockMultiGetDeleteCountCache
- func (m *MockMultiGetDeleteCountCache) Delete(key string) error
- func (m *MockMultiGetDeleteCountCache) EXPECT() *MockMultiGetDeleteCountCacheMockRecorder
- func (m *MockMultiGetDeleteCountCache) Expire(key string, expiration time.Duration) (bool, error)
- func (m *MockMultiGetDeleteCountCache) Get(key any) (any, error)
- func (m *MockMultiGetDeleteCountCache) GetMulti(keys any, ignoreNotFound bool) ([]any, error)
- func (m *MockMultiGetDeleteCountCache) Increment(key string) (int64, error)
- func (m *MockMultiGetDeleteCountCache) PFAdd(key string, els ...string) (int64, error)
- func (m *MockMultiGetDeleteCountCache) PFCount(keys ...string) (int64, error)
- func (m *MockMultiGetDeleteCountCache) PFMerge(dest string, expiration time.Duration, keys ...string) error
- func (m *MockMultiGetDeleteCountCache) Pipeline(tx bool) v3.PipeClient
- func (m *MockMultiGetDeleteCountCache) Put(key, value any, expiration time.Duration) error
- func (m *MockMultiGetDeleteCountCache) Scan(cursor, key, count any) (uint64, []string, error)
- type MockMultiGetDeleteCountCacheMockRecorder
- func (mr *MockMultiGetDeleteCountCacheMockRecorder) Delete(key any) *gomock.Call
- func (mr *MockMultiGetDeleteCountCacheMockRecorder) Expire(key, expiration any) *gomock.Call
- func (mr *MockMultiGetDeleteCountCacheMockRecorder) Get(key any) *gomock.Call
- func (mr *MockMultiGetDeleteCountCacheMockRecorder) GetMulti(keys, ignoreNotFound any) *gomock.Call
- func (mr *MockMultiGetDeleteCountCacheMockRecorder) Increment(key any) *gomock.Call
- func (mr *MockMultiGetDeleteCountCacheMockRecorder) PFAdd(key any, els ...any) *gomock.Call
- func (mr *MockMultiGetDeleteCountCacheMockRecorder) PFCount(keys ...any) *gomock.Call
- func (mr *MockMultiGetDeleteCountCacheMockRecorder) PFMerge(dest, expiration any, keys ...any) *gomock.Call
- func (mr *MockMultiGetDeleteCountCacheMockRecorder) Pipeline(tx any) *gomock.Call
- func (mr *MockMultiGetDeleteCountCacheMockRecorder) Put(key, value, expiration any) *gomock.Call
- func (mr *MockMultiGetDeleteCountCacheMockRecorder) Scan(cursor, key, count any) *gomock.Call
- type MockMultiGetter
- type MockMultiGetterMockRecorder
- type MockPFGetter
- type MockPFGetterMockRecorder
- type MockPFMerger
- type MockPFMergerMockRecorder
- type MockPipeLiner
- type MockPipeLinerMockRecorder
- type MockPutter
- type MockPutterMockRecorder
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.
type MockCacheMockRecorder ¶
type MockCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheMockRecorder is the mock recorder for MockCache.
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.
type MockCounterMockRecorder ¶ added in v0.3.0
type MockCounterMockRecorder struct {
// contains filtered or unexported fields
}
MockCounterMockRecorder is the mock recorder for MockCounter.
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.
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.
type MockExpirerMockRecorder ¶ added in v0.3.0
type MockExpirerMockRecorder struct {
// contains filtered or unexported fields
}
MockExpirerMockRecorder is the mock recorder for MockExpirer.
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.
type MockGetterMockRecorder ¶
type MockGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockGetterMockRecorder is the mock recorder for MockGetter.
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.
type MockListerMockRecorder ¶
type MockListerMockRecorder struct {
// contains filtered or unexported fields
}
MockListerMockRecorder is the mock recorder for MockLister.
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 ¶
func (m *MockMultiGetCache) EXPECT() *MockMultiGetCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMultiGetCache) Get ¶
func (m *MockMultiGetCache) Get(key any) (any, error)
Get mocks base method.
func (*MockMultiGetCache) GetMulti ¶
func (m *MockMultiGetCache) GetMulti(keys any, ignoreNotFound bool) ([]any, error)
GetMulti 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 any) *gomock.Call
Get indicates an expected call of Get.
func (*MockMultiGetCacheMockRecorder) GetMulti ¶
func (mr *MockMultiGetCacheMockRecorder) GetMulti(keys, ignoreNotFound any) *gomock.Call
GetMulti indicates an expected call of GetMulti.
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
func (m *MockMultiGetDeleteCountCache) EXPECT() *MockMultiGetDeleteCountCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMultiGetDeleteCountCache) Get ¶ added in v0.3.0
func (m *MockMultiGetDeleteCountCache) Get(key any) (any, error)
Get mocks base method.
func (*MockMultiGetDeleteCountCache) GetMulti ¶ added in v0.3.0
func (m *MockMultiGetDeleteCountCache) GetMulti(keys any, ignoreNotFound bool) ([]any, 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, expiration time.Duration, keys ...string) error
PFMerge mocks base method.
func (*MockMultiGetDeleteCountCache) Pipeline ¶ added in v0.3.0
func (m *MockMultiGetDeleteCountCache) Pipeline(tx bool) v3.PipeClient
Pipeline 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 any) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockMultiGetDeleteCountCacheMockRecorder) Expire ¶ added in v0.3.0
func (mr *MockMultiGetDeleteCountCacheMockRecorder) Expire(key, expiration any) *gomock.Call
Expire indicates an expected call of Expire.
func (*MockMultiGetDeleteCountCacheMockRecorder) Get ¶ added in v0.3.0
func (mr *MockMultiGetDeleteCountCacheMockRecorder) Get(key any) *gomock.Call
Get indicates an expected call of Get.
func (*MockMultiGetDeleteCountCacheMockRecorder) GetMulti ¶ added in v0.3.0
func (mr *MockMultiGetDeleteCountCacheMockRecorder) GetMulti(keys, ignoreNotFound any) *gomock.Call
GetMulti indicates an expected call of GetMulti.
func (*MockMultiGetDeleteCountCacheMockRecorder) Increment ¶ added in v0.3.0
func (mr *MockMultiGetDeleteCountCacheMockRecorder) Increment(key any) *gomock.Call
Increment indicates an expected call of Increment.
func (*MockMultiGetDeleteCountCacheMockRecorder) PFAdd ¶ added in v0.3.0
func (mr *MockMultiGetDeleteCountCacheMockRecorder) PFAdd(key any, els ...any) *gomock.Call
PFAdd indicates an expected call of PFAdd.
func (*MockMultiGetDeleteCountCacheMockRecorder) PFCount ¶ added in v0.3.0
func (mr *MockMultiGetDeleteCountCacheMockRecorder) PFCount(keys ...any) *gomock.Call
PFCount indicates an expected call of PFCount.
func (*MockMultiGetDeleteCountCacheMockRecorder) PFMerge ¶ added in v0.3.0
func (mr *MockMultiGetDeleteCountCacheMockRecorder) PFMerge(dest, expiration any, keys ...any) *gomock.Call
PFMerge indicates an expected call of PFMerge.
func (*MockMultiGetDeleteCountCacheMockRecorder) Pipeline ¶ added in v0.3.0
func (mr *MockMultiGetDeleteCountCacheMockRecorder) Pipeline(tx any) *gomock.Call
Pipeline indicates an expected call of Pipeline.
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 ¶
func (m *MockMultiGetter) EXPECT() *MockMultiGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockMultiGetterMockRecorder ¶
type MockMultiGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockMultiGetterMockRecorder is the mock recorder for MockMultiGetter.
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
func (m *MockPFGetter) EXPECT() *MockPFGetterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPFGetterMockRecorder ¶ added in v0.3.0
type MockPFGetterMockRecorder struct {
// contains filtered or unexported fields
}
MockPFGetterMockRecorder is the mock recorder for MockPFGetter.
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
func (m *MockPFMerger) EXPECT() *MockPFMergerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockPFMergerMockRecorder ¶ added in v0.3.0
type MockPFMergerMockRecorder struct {
// contains filtered or unexported fields
}
MockPFMergerMockRecorder is the mock recorder for MockPFMerger.
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
func (m *MockPipeLiner) EXPECT() *MockPipeLinerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPipeLiner) Pipeline ¶ added in v0.3.0
func (m *MockPipeLiner) Pipeline(tx bool) 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.
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.
type MockPutterMockRecorder ¶
type MockPutterMockRecorder struct {
// contains filtered or unexported fields
}
MockPutterMockRecorder is the mock recorder for MockPutter.