cachemock

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package cachemock is a generated GoMock package.

Index

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

func (m *MockCache) Del(ctx context.Context, keys ...string) error

Del mocks base method.

func (*MockCache) EXPECT

func (m *MockCache) EXPECT() *MockCacheMockRecorder

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

func (*MockCache) Get

func (m *MockCache) Get(ctx context.Context, key string, dest interface{}) error

Get mocks base method.

func (*MockCache) Set

func (m *MockCache) Set(ctx context.Context, key string, value interface{}, expiration time.Duration) error

Set mocks base method.

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 interface{}, keys ...interface{}) *gomock.Call

Del indicates an expected call of Del.

func (*MockCacheMockRecorder) Get

func (mr *MockCacheMockRecorder) Get(ctx, key, dest interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockCacheMockRecorder) Set

func (mr *MockCacheMockRecorder) 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