mock_cache

package
v0.0.0-...-f10e182 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package mock_cache is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockRepository

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

MockRepository is a mock of Repository interface.

func NewMockRepository

func NewMockRepository(ctrl *gomock.Controller) *MockRepository

NewMockRepository creates a new mock instance.

func (*MockRepository) Close

func (m *MockRepository) Close() error

Close mocks base method.

func (*MockRepository) Delete

func (m *MockRepository) Delete(key string) error

Delete mocks base method.

func (*MockRepository) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockRepository) Get

func (m *MockRepository) Get(key string) (string, error)

Get mocks base method.

func (*MockRepository) GetStruct

func (m *MockRepository) GetStruct(key string, entity any) error

GetStruct mocks base method.

func (*MockRepository) Set

func (m *MockRepository) Set(key, value string, exp time.Duration) error

Set mocks base method.

func (*MockRepository) SetStruct

func (m *MockRepository) SetStruct(key string, value any, exp time.Duration) error

SetStruct mocks base method.

type MockRepositoryMockRecorder

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

MockRepositoryMockRecorder is the mock recorder for MockRepository.

func (*MockRepositoryMockRecorder) Close

func (mr *MockRepositoryMockRecorder) Close() *gomock.Call

Close indicates an expected call of Close.

func (*MockRepositoryMockRecorder) Delete

func (mr *MockRepositoryMockRecorder) Delete(key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockRepositoryMockRecorder) Get

func (mr *MockRepositoryMockRecorder) Get(key interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockRepositoryMockRecorder) GetStruct

func (mr *MockRepositoryMockRecorder) GetStruct(key, entity interface{}) *gomock.Call

GetStruct indicates an expected call of GetStruct.

func (*MockRepositoryMockRecorder) Set

func (mr *MockRepositoryMockRecorder) Set(key, value, exp interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockRepositoryMockRecorder) SetStruct

func (mr *MockRepositoryMockRecorder) SetStruct(key, value, exp interface{}) *gomock.Call

SetStruct indicates an expected call of SetStruct.

Jump to

Keyboard shortcuts

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