mock

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package mock is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockCacher

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

MockCacher is a mock of Cacher interface.

func NewMockCacher

func NewMockCacher(ctrl *gomock.Controller) *MockCacher

NewMockCacher creates a new mock instance.

func (*MockCacher) EXPECT

func (m *MockCacher) EXPECT() *MockCacherMockRecorder

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

func (*MockCacher) FlushCache

func (m *MockCacher) FlushCache(ctx context.Context, key string, ttl, virtualTTL time.Duration, f cache.LoadFunc, data interface{}) error

FlushCache mocks base method.

func (*MockCacher) GetData

func (m *MockCacher) GetData(ctx context.Context, key string, ttl, virtualTTL time.Duration, f cache.LoadFunc, data interface{}) error

GetData mocks base method.

type MockCacherMockRecorder

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

MockCacherMockRecorder is the mock recorder for MockCacher.

func (*MockCacherMockRecorder) FlushCache

func (mr *MockCacherMockRecorder) FlushCache(ctx, key, ttl, virtualTTL, f, data interface{}) *gomock.Call

FlushCache indicates an expected call of FlushCache.

func (*MockCacherMockRecorder) GetData

func (mr *MockCacherMockRecorder) GetData(ctx, key, ttl, virtualTTL, f, data interface{}) *gomock.Call

GetData indicates an expected call of GetData.

Jump to

Keyboard shortcuts

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