cache

package
v0.1.210-herb-claims-m... Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package cache is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockICache

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

MockICache is a mock of ICache interface.

func NewMockICache

func NewMockICache(ctrl *gomock.Controller) *MockICache

NewMockICache creates a new mock instance.

func (*MockICache) Close

func (m *MockICache) Close() error

Close mocks base method.

func (*MockICache) EXPECT

func (m *MockICache) EXPECT() *MockICacheMockRecorder

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

func (*MockICache) Get

func (m *MockICache) Get(arg0 string) (interface{}, error)

Get mocks base method.

func (*MockICache) GetOrInsert

func (m *MockICache) GetOrInsert(arg0 string, arg1 func() (interface{}, time.Duration, error)) interface{}

GetOrInsert mocks base method.

func (*MockICache) GetWithTTL added in v0.1.182

func (m *MockICache) GetWithTTL(arg0 string) (interface{}, time.Duration, error)

GetWithTTL mocks base method.

func (*MockICache) Purge added in v0.1.182

func (m *MockICache) Purge() error

Purge mocks base method.

func (*MockICache) Remove added in v0.1.182

func (m *MockICache) Remove(arg0 string) error

Remove mocks base method.

func (*MockICache) Set

func (m *MockICache) Set(arg0 string, arg1 interface{}) error

Set mocks base method.

func (*MockICache) SetTTL added in v0.1.182

func (m *MockICache) SetTTL(arg0 time.Duration) error

SetTTL mocks base method.

func (*MockICache) SetWithTTL added in v0.1.182

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

SetWithTTL mocks base method.

type MockICacheMockRecorder

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

MockICacheMockRecorder is the mock recorder for MockICache.

func (*MockICacheMockRecorder) Close

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

Close indicates an expected call of Close.

func (*MockICacheMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockICacheMockRecorder) GetOrInsert

func (mr *MockICacheMockRecorder) GetOrInsert(arg0, arg1 interface{}) *gomock.Call

GetOrInsert indicates an expected call of GetOrInsert.

func (*MockICacheMockRecorder) GetWithTTL added in v0.1.182

func (mr *MockICacheMockRecorder) GetWithTTL(arg0 interface{}) *gomock.Call

GetWithTTL indicates an expected call of GetWithTTL.

func (*MockICacheMockRecorder) Purge added in v0.1.182

func (mr *MockICacheMockRecorder) Purge() *gomock.Call

Purge indicates an expected call of Purge.

func (*MockICacheMockRecorder) Remove added in v0.1.182

func (mr *MockICacheMockRecorder) Remove(arg0 interface{}) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockICacheMockRecorder) Set

func (mr *MockICacheMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockICacheMockRecorder) SetTTL added in v0.1.182

func (mr *MockICacheMockRecorder) SetTTL(arg0 interface{}) *gomock.Call

SetTTL indicates an expected call of SetTTL.

func (*MockICacheMockRecorder) SetWithTTL added in v0.1.182

func (mr *MockICacheMockRecorder) SetWithTTL(arg0, arg1, arg2 interface{}) *gomock.Call

SetWithTTL indicates an expected call of SetWithTTL.

type MockIMemoryCache

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

MockIMemoryCache is a mock of IMemoryCache interface.

func NewMockIMemoryCache

func NewMockIMemoryCache(ctrl *gomock.Controller) *MockIMemoryCache

NewMockIMemoryCache creates a new mock instance.

func (*MockIMemoryCache) Close

func (m *MockIMemoryCache) Close() error

Close mocks base method.

func (*MockIMemoryCache) EXPECT

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

func (*MockIMemoryCache) Get

func (m *MockIMemoryCache) Get(arg0 string) (interface{}, error)

Get mocks base method.

func (*MockIMemoryCache) GetOrInsert

func (m *MockIMemoryCache) GetOrInsert(arg0 string, arg1 func() (interface{}, time.Duration, error)) interface{}

GetOrInsert mocks base method.

func (*MockIMemoryCache) GetWithTTL added in v0.1.182

func (m *MockIMemoryCache) GetWithTTL(arg0 string) (interface{}, time.Duration, error)

GetWithTTL mocks base method.

func (*MockIMemoryCache) Purge added in v0.1.182

func (m *MockIMemoryCache) Purge() error

Purge mocks base method.

func (*MockIMemoryCache) Remove added in v0.1.182

func (m *MockIMemoryCache) Remove(arg0 string) error

Remove mocks base method.

func (*MockIMemoryCache) Set

func (m *MockIMemoryCache) Set(arg0 string, arg1 interface{}) error

Set mocks base method.

func (*MockIMemoryCache) SetTTL added in v0.1.182

func (m *MockIMemoryCache) SetTTL(arg0 time.Duration) error

SetTTL mocks base method.

func (*MockIMemoryCache) SetWithTTL added in v0.1.182

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

SetWithTTL mocks base method.

type MockIMemoryCacheMockRecorder

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

MockIMemoryCacheMockRecorder is the mock recorder for MockIMemoryCache.

func (*MockIMemoryCacheMockRecorder) Close

Close indicates an expected call of Close.

func (*MockIMemoryCacheMockRecorder) Get

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

Get indicates an expected call of Get.

func (*MockIMemoryCacheMockRecorder) GetOrInsert

func (mr *MockIMemoryCacheMockRecorder) GetOrInsert(arg0, arg1 interface{}) *gomock.Call

GetOrInsert indicates an expected call of GetOrInsert.

func (*MockIMemoryCacheMockRecorder) GetWithTTL added in v0.1.182

func (mr *MockIMemoryCacheMockRecorder) GetWithTTL(arg0 interface{}) *gomock.Call

GetWithTTL indicates an expected call of GetWithTTL.

func (*MockIMemoryCacheMockRecorder) Purge added in v0.1.182

Purge indicates an expected call of Purge.

func (*MockIMemoryCacheMockRecorder) Remove added in v0.1.182

func (mr *MockIMemoryCacheMockRecorder) Remove(arg0 interface{}) *gomock.Call

Remove indicates an expected call of Remove.

func (*MockIMemoryCacheMockRecorder) Set

func (mr *MockIMemoryCacheMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call

Set indicates an expected call of Set.

func (*MockIMemoryCacheMockRecorder) SetTTL added in v0.1.182

func (mr *MockIMemoryCacheMockRecorder) SetTTL(arg0 interface{}) *gomock.Call

SetTTL indicates an expected call of SetTTL.

func (*MockIMemoryCacheMockRecorder) SetWithTTL added in v0.1.182

func (mr *MockIMemoryCacheMockRecorder) SetWithTTL(arg0, arg1, arg2 interface{}) *gomock.Call

SetWithTTL indicates an expected call of SetWithTTL.

Jump to

Keyboard shortcuts

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