mocks

package
v1.1.29 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package 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 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) EXPECT

func (m *MockCache) EXPECT() *MockCacheMockRecorder

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

func (*MockCache) Expire

func (m *MockCache) Expire(arg0 string, arg1 time.Duration) error

Expire mocks base method.

func (*MockCache) Forget

func (m *MockCache) Forget(arg0 string) error

Forget mocks base method.

func (*MockCache) ForgetAll

func (m *MockCache) ForgetAll(arg0 string) (int, error)

ForgetAll mocks base method.

func (*MockCache) Get

func (m *MockCache) Get(arg0 string) (string, bool, error)

Get mocks base method.

func (*MockCache) Increment

func (m *MockCache) Increment(arg0 string) (int64, error)

Increment mocks base method.

func (*MockCache) Keys

func (m *MockCache) Keys(arg0 string) ([]string, error)

Keys mocks base method.

func (*MockCache) Remember

func (m *MockCache) Remember(arg0 string, arg1 interface{}, arg2 time.Duration) error

Remember mocks base method.

type MockCacheMockRecorder

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

MockCacheMockRecorder is the mock recorder for MockCache.

func (*MockCacheMockRecorder) Expire

func (mr *MockCacheMockRecorder) Expire(arg0, arg1 interface{}) *gomock.Call

Expire indicates an expected call of Expire.

func (*MockCacheMockRecorder) Forget

func (mr *MockCacheMockRecorder) Forget(arg0 interface{}) *gomock.Call

Forget indicates an expected call of Forget.

func (*MockCacheMockRecorder) ForgetAll

func (mr *MockCacheMockRecorder) ForgetAll(arg0 interface{}) *gomock.Call

ForgetAll indicates an expected call of ForgetAll.

func (*MockCacheMockRecorder) Get

func (mr *MockCacheMockRecorder) Get(arg0 interface{}) *gomock.Call

Get indicates an expected call of Get.

func (*MockCacheMockRecorder) Increment

func (mr *MockCacheMockRecorder) Increment(arg0 interface{}) *gomock.Call

Increment indicates an expected call of Increment.

func (*MockCacheMockRecorder) Keys

func (mr *MockCacheMockRecorder) Keys(arg0 interface{}) *gomock.Call

Keys indicates an expected call of Keys.

func (*MockCacheMockRecorder) Remember

func (mr *MockCacheMockRecorder) Remember(arg0, arg1, arg2 interface{}) *gomock.Call

Remember indicates an expected call of Remember.

Jump to

Keyboard shortcuts

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