Documentation
¶
Overview ¶
Package mock_cache is a generated GoMock package.
Index ¶
- type MockCache
- func (m *MockCache) Del(ctx context.Context, key string)
- func (m *MockCache) EXPECT() *MockCacheMockRecorder
- func (m *MockCache) Get(ctx context.Context, key string) (string, error)
- func (m *MockCache) GetTTL(ctx context.Context, key string) (time.Duration, error)
- func (m *MockCache) Set(ctx context.Context, key, value string) error
- func (m *MockCache) SetWithTTL(ctx context.Context, key, value string, ttl time.Duration) error
- type MockCacheMockRecorder
- func (mr *MockCacheMockRecorder) Del(ctx, key any) *gomock.Call
- func (mr *MockCacheMockRecorder) Get(ctx, key any) *gomock.Call
- func (mr *MockCacheMockRecorder) GetTTL(ctx, key any) *gomock.Call
- func (mr *MockCacheMockRecorder) Set(ctx, key, value any) *gomock.Call
- func (mr *MockCacheMockRecorder) SetWithTTL(ctx, key, value, ttl any) *gomock.Call
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.
func (*MockCacheMockRecorder) Del ¶
func (mr *MockCacheMockRecorder) Del(ctx, key any) *gomock.Call
Del indicates an expected call of Del.
func (*MockCacheMockRecorder) Get ¶
func (mr *MockCacheMockRecorder) Get(ctx, key any) *gomock.Call
Get indicates an expected call of Get.
func (*MockCacheMockRecorder) GetTTL ¶
func (mr *MockCacheMockRecorder) GetTTL(ctx, key any) *gomock.Call
GetTTL indicates an expected call of GetTTL.
func (*MockCacheMockRecorder) Set ¶
func (mr *MockCacheMockRecorder) Set(ctx, key, value any) *gomock.Call
Set indicates an expected call of Set.
func (*MockCacheMockRecorder) SetWithTTL ¶
func (mr *MockCacheMockRecorder) SetWithTTL(ctx, key, value, ttl any) *gomock.Call
SetWithTTL indicates an expected call of SetWithTTL.
Click to show internal directories.
Click to hide internal directories.