cache_mocks

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package cache_mocks 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[T any] struct {
	// contains filtered or unexported fields
}

MockCache is a mock of Cache interface.

func NewMockCache

func NewMockCache[T any](ctrl *gomock.Controller) *MockCache[T]

NewMockCache creates a new mock instance.

func (*MockCache[T]) EXPECT

func (m *MockCache[T]) EXPECT() *MockCacheMockRecorder[T]

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

func (*MockCache[T]) Get

func (m *MockCache[T]) Get(ctx context.Context, key string, initializer cache.Initializer[T]) (T, error)

Get mocks base method.

func (*MockCache[T]) Invalidate

func (m *MockCache[T]) Invalidate(ctx context.Context, key string) error

Invalidate mocks base method.

func (*MockCache[T]) InvalidateAll

func (m *MockCache[T]) InvalidateAll(ctx context.Context) error

InvalidateAll mocks base method.

func (*MockCache[T]) Set

func (m *MockCache[T]) Set(ctx context.Context, key string, value T, duration *time.Duration)

Set mocks base method.

type MockCacheMockRecorder

type MockCacheMockRecorder[T any] struct {
	// contains filtered or unexported fields
}

MockCacheMockRecorder is the mock recorder for MockCache.

func (*MockCacheMockRecorder[T]) Get

func (mr *MockCacheMockRecorder[T]) Get(ctx, key, initializer interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockCacheMockRecorder[T]) Invalidate

func (mr *MockCacheMockRecorder[T]) Invalidate(ctx, key interface{}) *gomock.Call

Invalidate indicates an expected call of Invalidate.

func (*MockCacheMockRecorder[T]) InvalidateAll

func (mr *MockCacheMockRecorder[T]) InvalidateAll(ctx interface{}) *gomock.Call

InvalidateAll indicates an expected call of InvalidateAll.

func (*MockCacheMockRecorder[T]) Set

func (mr *MockCacheMockRecorder[T]) Set(ctx, key, value, duration 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