Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockCacheService
- func (m *MockCacheService) Close() error
- func (m *MockCacheService) Del(ctx context.Context, keys ...string) *redis.IntCmd
- func (m *MockCacheService) EXPECT() *MockCacheServiceMockRecorder
- func (m *MockCacheService) FlushAll(ctx context.Context) *redis.StatusCmd
- func (m *MockCacheService) Get(ctx context.Context, key string) *redis.StringCmd
- func (m *MockCacheService) Set(ctx context.Context, key string, value any, expiration time.Duration) *redis.StatusCmd
- type MockCacheServiceMockRecorder
- func (mr *MockCacheServiceMockRecorder) Close() *gomock.Call
- func (mr *MockCacheServiceMockRecorder) Del(ctx interface{}, keys ...interface{}) *gomock.Call
- func (mr *MockCacheServiceMockRecorder) FlushAll(ctx interface{}) *gomock.Call
- func (mr *MockCacheServiceMockRecorder) Get(ctx, key interface{}) *gomock.Call
- func (mr *MockCacheServiceMockRecorder) Set(ctx, key, value, expiration interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCacheService ¶
type MockCacheService struct {
// contains filtered or unexported fields
}
MockCacheService is a mock of CacheService interface.
func NewMockCacheService ¶
func NewMockCacheService(ctrl *gomock.Controller) *MockCacheService
NewMockCacheService creates a new mock instance.
func (*MockCacheService) EXPECT ¶
func (m *MockCacheService) EXPECT() *MockCacheServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCacheService) FlushAll ¶
func (m *MockCacheService) FlushAll(ctx context.Context) *redis.StatusCmd
FlushAll mocks base method.
type MockCacheServiceMockRecorder ¶
type MockCacheServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheServiceMockRecorder is the mock recorder for MockCacheService.
func (*MockCacheServiceMockRecorder) Close ¶
func (mr *MockCacheServiceMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockCacheServiceMockRecorder) Del ¶
func (mr *MockCacheServiceMockRecorder) Del(ctx interface{}, keys ...interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockCacheServiceMockRecorder) FlushAll ¶
func (mr *MockCacheServiceMockRecorder) FlushAll(ctx interface{}) *gomock.Call
FlushAll indicates an expected call of FlushAll.
func (*MockCacheServiceMockRecorder) Get ¶
func (mr *MockCacheServiceMockRecorder) Get(ctx, key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockCacheServiceMockRecorder) Set ¶
func (mr *MockCacheServiceMockRecorder) Set(ctx, key, value, expiration interface{}) *gomock.Call
Set indicates an expected call of Set.
Click to show internal directories.
Click to hide internal directories.