Documentation ¶
Overview ¶
Package cache is a generated GoMock package.
Index ¶
- type MockICache
- func (m *MockICache) Clear() error
- func (m *MockICache) Close() error
- func (m *MockICache) Del(arg0 string) error
- func (m *MockICache) DelMulti(arg0 []string) error
- func (m *MockICache) EXPECT() *MockICacheMockRecorder
- func (m *MockICache) Get(arg0 string) interface{}
- func (m *MockICache) GetMulti(arg0 []string) map[string]interface{}
- func (m *MockICache) GetOrInsert(arg0 string, arg1 func() (interface{}, time.Duration, error)) interface{}
- func (m *MockICache) Has(arg0 string) bool
- func (m *MockICache) Set(arg0 string, arg1 interface{}, arg2 time.Duration) error
- func (m *MockICache) SetMulti(arg0 map[string]interface{}, arg1 time.Duration) error
- type MockICacheMockRecorder
- func (mr *MockICacheMockRecorder) Clear() *gomock.Call
- func (mr *MockICacheMockRecorder) Close() *gomock.Call
- func (mr *MockICacheMockRecorder) Del(arg0 interface{}) *gomock.Call
- func (mr *MockICacheMockRecorder) DelMulti(arg0 interface{}) *gomock.Call
- func (mr *MockICacheMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockICacheMockRecorder) GetMulti(arg0 interface{}) *gomock.Call
- func (mr *MockICacheMockRecorder) GetOrInsert(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockICacheMockRecorder) Has(arg0 interface{}) *gomock.Call
- func (mr *MockICacheMockRecorder) Set(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockICacheMockRecorder) SetMulti(arg0, arg1 interface{}) *gomock.Call
- type MockIMemoryCache
- func (m *MockIMemoryCache) Clear() error
- func (m *MockIMemoryCache) Close() error
- func (m *MockIMemoryCache) Del(arg0 string) error
- func (m *MockIMemoryCache) DelMulti(arg0 []string) error
- func (m *MockIMemoryCache) EXPECT() *MockIMemoryCacheMockRecorder
- func (m *MockIMemoryCache) Get(arg0 string) interface{}
- func (m *MockIMemoryCache) GetMulti(arg0 []string) map[string]interface{}
- func (m *MockIMemoryCache) GetOrInsert(arg0 string, arg1 func() (interface{}, time.Duration, error)) interface{}
- func (m *MockIMemoryCache) Has(arg0 string) bool
- func (m *MockIMemoryCache) Set(arg0 string, arg1 interface{}, arg2 time.Duration) error
- func (m *MockIMemoryCache) SetMulti(arg0 map[string]interface{}, arg1 time.Duration) error
- type MockIMemoryCacheMockRecorder
- func (mr *MockIMemoryCacheMockRecorder) Clear() *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) Close() *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) Del(arg0 interface{}) *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) DelMulti(arg0 interface{}) *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) GetMulti(arg0 interface{}) *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) GetOrInsert(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) Has(arg0 interface{}) *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) Set(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockIMemoryCacheMockRecorder) SetMulti(arg0, arg1 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) DelMulti ¶
func (m *MockICache) DelMulti(arg0 []string) error
DelMulti 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) GetMulti ¶
func (m *MockICache) GetMulti(arg0 []string) map[string]interface{}
GetMulti mocks base method.
func (*MockICache) GetOrInsert ¶
func (m *MockICache) GetOrInsert(arg0 string, arg1 func() (interface{}, time.Duration, error)) interface{}
GetOrInsert mocks base method.
type MockICacheMockRecorder ¶
type MockICacheMockRecorder struct {
// contains filtered or unexported fields
}
MockICacheMockRecorder is the mock recorder for MockICache.
func (*MockICacheMockRecorder) Clear ¶
func (mr *MockICacheMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockICacheMockRecorder) Close ¶
func (mr *MockICacheMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockICacheMockRecorder) Del ¶
func (mr *MockICacheMockRecorder) Del(arg0 interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockICacheMockRecorder) DelMulti ¶
func (mr *MockICacheMockRecorder) DelMulti(arg0 interface{}) *gomock.Call
DelMulti indicates an expected call of DelMulti.
func (*MockICacheMockRecorder) Get ¶
func (mr *MockICacheMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockICacheMockRecorder) GetMulti ¶
func (mr *MockICacheMockRecorder) GetMulti(arg0 interface{}) *gomock.Call
GetMulti indicates an expected call of GetMulti.
func (*MockICacheMockRecorder) GetOrInsert ¶
func (mr *MockICacheMockRecorder) GetOrInsert(arg0, arg1 interface{}) *gomock.Call
GetOrInsert indicates an expected call of GetOrInsert.
func (*MockICacheMockRecorder) Has ¶
func (mr *MockICacheMockRecorder) Has(arg0 interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockICacheMockRecorder) Set ¶
func (mr *MockICacheMockRecorder) Set(arg0, arg1, arg2 interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockICacheMockRecorder) SetMulti ¶
func (mr *MockICacheMockRecorder) SetMulti(arg0, arg1 interface{}) *gomock.Call
SetMulti indicates an expected call of SetMulti.
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) Del ¶
func (m *MockIMemoryCache) Del(arg0 string) error
Del mocks base method.
func (*MockIMemoryCache) DelMulti ¶
func (m *MockIMemoryCache) DelMulti(arg0 []string) error
DelMulti mocks base method.
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{}
Get mocks base method.
func (*MockIMemoryCache) GetMulti ¶
func (m *MockIMemoryCache) GetMulti(arg0 []string) map[string]interface{}
GetMulti 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) Has ¶
func (m *MockIMemoryCache) Has(arg0 string) bool
Has mocks base method.
type MockIMemoryCacheMockRecorder ¶
type MockIMemoryCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockIMemoryCacheMockRecorder is the mock recorder for MockIMemoryCache.
func (*MockIMemoryCacheMockRecorder) Clear ¶
func (mr *MockIMemoryCacheMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockIMemoryCacheMockRecorder) Close ¶
func (mr *MockIMemoryCacheMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockIMemoryCacheMockRecorder) Del ¶
func (mr *MockIMemoryCacheMockRecorder) Del(arg0 interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockIMemoryCacheMockRecorder) DelMulti ¶
func (mr *MockIMemoryCacheMockRecorder) DelMulti(arg0 interface{}) *gomock.Call
DelMulti indicates an expected call of DelMulti.
func (*MockIMemoryCacheMockRecorder) Get ¶
func (mr *MockIMemoryCacheMockRecorder) Get(arg0 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockIMemoryCacheMockRecorder) GetMulti ¶
func (mr *MockIMemoryCacheMockRecorder) GetMulti(arg0 interface{}) *gomock.Call
GetMulti indicates an expected call of GetMulti.
func (*MockIMemoryCacheMockRecorder) GetOrInsert ¶
func (mr *MockIMemoryCacheMockRecorder) GetOrInsert(arg0, arg1 interface{}) *gomock.Call
GetOrInsert indicates an expected call of GetOrInsert.
func (*MockIMemoryCacheMockRecorder) Has ¶
func (mr *MockIMemoryCacheMockRecorder) Has(arg0 interface{}) *gomock.Call
Has indicates an expected call of Has.
func (*MockIMemoryCacheMockRecorder) Set ¶
func (mr *MockIMemoryCacheMockRecorder) Set(arg0, arg1, arg2 interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockIMemoryCacheMockRecorder) SetMulti ¶
func (mr *MockIMemoryCacheMockRecorder) SetMulti(arg0, arg1 interface{}) *gomock.Call
SetMulti indicates an expected call of SetMulti.