Documentation ¶
Overview ¶
Package cache is a generated GoMock package.
Index ¶
- type MockICache
- func (m *MockICache) Close() error
- func (m *MockICache) EXPECT() *MockICacheMockRecorder
- func (m *MockICache) Get(arg0 string) (interface{}, error)
- func (m *MockICache) GetOrInsert(arg0 string, arg1 func() (interface{}, time.Duration, error)) interface{}
- func (m *MockICache) GetWithTTL(arg0 string) (interface{}, time.Duration, error)
- func (m *MockICache) Purge() error
- func (m *MockICache) Remove(arg0 string) error
- func (m *MockICache) Set(arg0 string, arg1 interface{}) error
- func (m *MockICache) SetTTL(arg0 time.Duration) error
- func (m *MockICache) SetWithTTL(arg0 string, arg1 interface{}, arg2 time.Duration) error
- type MockICacheMockRecorder
- func (mr *MockICacheMockRecorder) Close() *gomock.Call
- func (mr *MockICacheMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockICacheMockRecorder) GetOrInsert(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockICacheMockRecorder) GetWithTTL(arg0 interface{}) *gomock.Call
- func (mr *MockICacheMockRecorder) Purge() *gomock.Call
- func (mr *MockICacheMockRecorder) Remove(arg0 interface{}) *gomock.Call
- func (mr *MockICacheMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockICacheMockRecorder) SetTTL(arg0 interface{}) *gomock.Call
- func (mr *MockICacheMockRecorder) SetWithTTL(arg0, arg1, arg2 interface{}) *gomock.Call
- type MockIMemoryCache
- func (m *MockIMemoryCache) Close() error
- func (m *MockIMemoryCache) EXPECT() *MockIMemoryCacheMockRecorder
- func (m *MockIMemoryCache) Get(arg0 string) (interface{}, error)
- func (m *MockIMemoryCache) GetOrInsert(arg0 string, arg1 func() (interface{}, time.Duration, error)) interface{}
- func (m *MockIMemoryCache) GetWithTTL(arg0 string) (interface{}, time.Duration, error)
- func (m *MockIMemoryCache) Purge() error
- func (m *MockIMemoryCache) Remove(arg0 string) error
- func (m *MockIMemoryCache) Set(arg0 string, arg1 interface{}) error
- func (m *MockIMemoryCache) SetTTL(arg0 time.Duration) error
- func (m *MockIMemoryCache) SetWithTTL(arg0 string, arg1 interface{}, arg2 time.Duration) error
- type MockIMemoryCacheMockRecorder
- func (mr *MockIMemoryCacheMockRecorder) Close() *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) GetOrInsert(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) GetWithTTL(arg0 interface{}) *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) Purge() *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) Remove(arg0 interface{}) *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) Set(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) SetTTL(arg0 interface{}) *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) SetWithTTL(arg0, arg1, arg2 interface{}) *gomock.Call
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) 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) EXPECT ¶
func (m *MockIMemoryCache) EXPECT() *MockIMemoryCacheMockRecorder
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 ¶
func (mr *MockIMemoryCacheMockRecorder) Close() *gomock.Call
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
func (mr *MockIMemoryCacheMockRecorder) Purge() *gomock.Call
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.