Documentation
¶
Overview ¶
Package mockcache is a generated GoMock package.
Index ¶
- type MockCache
- func (m *MockCache) Close() error
- func (m *MockCache) Del(arg0 context.Context, arg1 string) error
- func (m *MockCache) EXPECT() *MockCacheMockRecorder
- func (m *MockCache) Get(arg0 context.Context, arg1 string, arg2 interface{}) (bool, error)
- func (m *MockCache) IsExpired(arg0 context.Context, arg1 string) (bool, error)
- func (m *MockCache) Set(arg0 context.Context, arg1 string, arg2 interface{}, arg3 time.Duration) error
- func (m *MockCache) SetNX(arg0 context.Context, arg1 string, arg2 interface{}, arg3 time.Duration) (bool, error)
- type MockCacheMockRecorder
- func (mr *MockCacheMockRecorder) Close() *gomock.Call
- func (mr *MockCacheMockRecorder) Del(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder) IsExpired(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder) Set(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder) SetNX(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
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.
type MockCacheMockRecorder ¶
type MockCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockCacheMockRecorder is the mock recorder for MockCache.
func (*MockCacheMockRecorder) Close ¶
func (mr *MockCacheMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockCacheMockRecorder) Del ¶
func (mr *MockCacheMockRecorder) Del(arg0, arg1 interface{}) *gomock.Call
Del indicates an expected call of Del.
func (*MockCacheMockRecorder) Get ¶
func (mr *MockCacheMockRecorder) Get(arg0, arg1, arg2 interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockCacheMockRecorder) IsExpired ¶
func (mr *MockCacheMockRecorder) IsExpired(arg0, arg1 interface{}) *gomock.Call
IsExpired indicates an expected call of IsExpired.
func (*MockCacheMockRecorder) Set ¶
func (mr *MockCacheMockRecorder) Set(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockCacheMockRecorder) SetNX ¶
func (mr *MockCacheMockRecorder) SetNX(arg0, arg1, arg2, arg3 interface{}) *gomock.Call
SetNX indicates an expected call of SetNX.
Click to show internal directories.
Click to hide internal directories.