Documentation
¶
Overview ¶
Package cache_mocks is a generated GoMock package.
Index ¶
- type MockCache
- func (m *MockCache[T]) EXPECT() *MockCacheMockRecorder[T]
- func (m *MockCache[T]) Get(ctx context.Context, key string, initializer cache.Initializer[T]) (T, error)
- func (m *MockCache[T]) Invalidate(ctx context.Context, key string) error
- func (m *MockCache[T]) InvalidateAll(ctx context.Context) error
- func (m *MockCache[T]) Set(ctx context.Context, key string, value T, duration *time.Duration)
- type MockCacheMockRecorder
- func (mr *MockCacheMockRecorder[T]) Get(ctx, key, initializer interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder[T]) Invalidate(ctx, key interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder[T]) InvalidateAll(ctx interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder[T]) Set(ctx, key, value, duration interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCache ¶
type MockCache[T any] struct { // contains filtered or unexported fields }
MockCache is a mock of Cache interface.
func NewMockCache ¶
func NewMockCache[T any](ctrl *gomock.Controller) *MockCache[T]
NewMockCache creates a new mock instance.
func (*MockCache[T]) EXPECT ¶
func (m *MockCache[T]) EXPECT() *MockCacheMockRecorder[T]
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCache[T]) Get ¶
func (m *MockCache[T]) Get(ctx context.Context, key string, initializer cache.Initializer[T]) (T, error)
Get mocks base method.
func (*MockCache[T]) Invalidate ¶
Invalidate mocks base method.
func (*MockCache[T]) InvalidateAll ¶
InvalidateAll mocks base method.
type MockCacheMockRecorder ¶
type MockCacheMockRecorder[T any] struct { // contains filtered or unexported fields }
MockCacheMockRecorder is the mock recorder for MockCache.
func (*MockCacheMockRecorder[T]) Get ¶
func (mr *MockCacheMockRecorder[T]) Get(ctx, key, initializer interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockCacheMockRecorder[T]) Invalidate ¶
func (mr *MockCacheMockRecorder[T]) Invalidate(ctx, key interface{}) *gomock.Call
Invalidate indicates an expected call of Invalidate.
func (*MockCacheMockRecorder[T]) InvalidateAll ¶
func (mr *MockCacheMockRecorder[T]) InvalidateAll(ctx interface{}) *gomock.Call
InvalidateAll indicates an expected call of InvalidateAll.
func (*MockCacheMockRecorder[T]) Set ¶
func (mr *MockCacheMockRecorder[T]) Set(ctx, key, value, duration interface{}) *gomock.Call
Set indicates an expected call of Set.
Click to show internal directories.
Click to hide internal directories.