mock_cache

package
v16.3.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 4 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 MockErrCacher

type MockErrCacher[K any] struct {
	// contains filtered or unexported fields
}

MockErrCacher is a mock of ErrCacher interface.

func NewMockErrCacher

func NewMockErrCacher[K any](ctrl *gomock.Controller) *MockErrCacher[K]

NewMockErrCacher creates a new mock instance.

func (*MockErrCacher[K]) CacheError

func (m *MockErrCacher[K]) CacheError(ctx context.Context, key K, err error, errTtl time.Duration)

CacheError mocks base method.

func (*MockErrCacher[K]) EXPECT

func (m *MockErrCacher[K]) EXPECT() *MockErrCacherMockRecorder[K]

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

func (*MockErrCacher[K]) GetError

func (m *MockErrCacher[K]) GetError(ctx context.Context, key K) error

GetError mocks base method.

type MockErrCacherMockRecorder

type MockErrCacherMockRecorder[K any] struct {
	// contains filtered or unexported fields
}

MockErrCacherMockRecorder is the mock recorder for MockErrCacher.

func (*MockErrCacherMockRecorder[K]) CacheError

func (mr *MockErrCacherMockRecorder[K]) CacheError(ctx, key, err, errTtl interface{}) *gomock.Call

CacheError indicates an expected call of CacheError.

func (*MockErrCacherMockRecorder[K]) GetError

func (mr *MockErrCacherMockRecorder[K]) GetError(ctx, key interface{}) *gomock.Call

GetError indicates an expected call of GetError.

Jump to

Keyboard shortcuts

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