mocks

package
v0.6.3 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

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) Close

func (m *MockCacheService) Close() error

Close mocks base method.

func (*MockCacheService) Del

func (m *MockCacheService) Del(ctx context.Context, keys ...string) *redis.IntCmd

Del mocks base method.

func (*MockCacheService) EXPECT

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.

func (*MockCacheService) Get

Get mocks base method.

func (*MockCacheService) Set

func (m *MockCacheService) Set(ctx context.Context, key string, value any, expiration time.Duration) *redis.StatusCmd

Set mocks base method.

type MockCacheServiceMockRecorder

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

MockCacheServiceMockRecorder is the mock recorder for MockCacheService.

func (*MockCacheServiceMockRecorder) Close

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.

Jump to

Keyboard shortcuts

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