Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockCache
- func (m *MockCache) EXPECT() *MockCacheMockRecorder
- func (m *MockCache) Expire(arg0 string, arg1 time.Duration) error
- func (m *MockCache) Forget(arg0 string) error
- func (m *MockCache) ForgetAll(arg0 string) (int, error)
- func (m *MockCache) Get(arg0 string) (string, bool, error)
- func (m *MockCache) Increment(arg0 string) (int64, error)
- func (m *MockCache) Keys(arg0 string) ([]string, error)
- func (m *MockCache) Remember(arg0 string, arg1 interface{}, arg2 time.Duration) error
- type MockCacheMockRecorder
- func (mr *MockCacheMockRecorder) Expire(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder) Forget(arg0 interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder) ForgetAll(arg0 interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder) Get(arg0 interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder) Increment(arg0 interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder) Keys(arg0 interface{}) *gomock.Call
- func (mr *MockCacheMockRecorder) Remember(arg0, arg1, arg2 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) 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) Keys ¶
func (mr *MockCacheMockRecorder) Keys(arg0 interface{}) *gomock.Call
Keys indicates an expected call of Keys.
func (*MockCacheMockRecorder) Remember ¶
func (mr *MockCacheMockRecorder) Remember(arg0, arg1, arg2 interface{}) *gomock.Call
Remember indicates an expected call of Remember.
Click to show internal directories.
Click to hide internal directories.