mock_cache

package
v0.25.2 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 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 MockCacher added in v0.17.0

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

MockCacher is a mock of Cacher interface.

func NewMockCacher added in v0.17.0

func NewMockCacher(ctrl *gomock.Controller) *MockCacher

NewMockCacher creates a new mock instance.

func (*MockCacher) Close added in v0.17.0

func (m *MockCacher) Close() error

Close mocks base method.

func (*MockCacher) Delete added in v0.17.0

func (m *MockCacher) Delete(ctx context.Context, key string) error

Delete mocks base method.

func (*MockCacher) EXPECT added in v0.17.0

func (m *MockCacher) EXPECT() *MockCacherMockRecorder

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

func (*MockCacher) Get added in v0.17.0

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

Get mocks base method.

func (*MockCacher) Set added in v0.17.0

func (m *MockCacher) Set(ctx context.Context, key string, data interface{}, ttl ...time.Duration) error

Set mocks base method.

type MockCacherMockRecorder added in v0.17.0

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

MockCacherMockRecorder is the mock recorder for MockCacher.

func (*MockCacherMockRecorder) Close added in v0.17.0

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

Close indicates an expected call of Close.

func (*MockCacherMockRecorder) Delete added in v0.17.0

func (mr *MockCacherMockRecorder) Delete(ctx, key interface{}) *gomock.Call

Delete indicates an expected call of Delete.

func (*MockCacherMockRecorder) Get added in v0.17.0

func (mr *MockCacherMockRecorder) Get(ctx, key, data interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockCacherMockRecorder) Set added in v0.17.0

func (mr *MockCacherMockRecorder) Set(ctx, key, data interface{}, ttl ...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