mocks

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2026 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) IncrementWithInitialExpiry added in v1.2.2

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

IncrementWithInitialExpiry mocks base method.

func (*MockCache) Keys

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

Keys mocks base method.

func (*MockCache) Put added in v1.1.40

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

Put 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) IncrementWithInitialExpiry added in v1.2.2

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

IncrementWithInitialExpiry indicates an expected call of IncrementWithInitialExpiry.

func (*MockCacheMockRecorder) Keys

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

Keys indicates an expected call of Keys.

func (*MockCacheMockRecorder) Put added in v1.1.40

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

Put indicates an expected call of Put.

Jump to

Keyboard shortcuts

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