Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockStoreInterface
- func (m *MockStoreInterface) Clear() error
- func (m *MockStoreInterface) Delete(key string) error
- func (m *MockStoreInterface) EXPECT() *MockStoreInterfaceMockRecorder
- func (m *MockStoreInterface) Get(key string) (interface{}, error)
- func (m *MockStoreInterface) GetType() string
- func (m *MockStoreInterface) GetWithTTL(key string) (interface{}, time.Duration, error)
- func (m *MockStoreInterface) Set(key string, value interface{}, expiration time.Duration) error
- func (m *MockStoreInterface) SetNX(key string, value interface{}, expiration time.Duration) bool
- type MockStoreInterfaceMockRecorder
- func (mr *MockStoreInterfaceMockRecorder) Clear() *gomock.Call
- func (mr *MockStoreInterfaceMockRecorder) Delete(key interface{}) *gomock.Call
- func (mr *MockStoreInterfaceMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockStoreInterfaceMockRecorder) GetType() *gomock.Call
- func (mr *MockStoreInterfaceMockRecorder) GetWithTTL(key interface{}) *gomock.Call
- func (mr *MockStoreInterfaceMockRecorder) Set(key, value, expiration interface{}) *gomock.Call
- func (mr *MockStoreInterfaceMockRecorder) SetNX(key, value, expiration interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStoreInterface ¶
type MockStoreInterface struct {
// contains filtered or unexported fields
}
MockStoreInterface is a mock of StoreInterface interface.
func NewMockStoreInterface ¶
func NewMockStoreInterface(ctrl *gomock.Controller) *MockStoreInterface
NewMockStoreInterface creates a new mock instance.
func (*MockStoreInterface) Clear ¶
func (m *MockStoreInterface) Clear() error
Clear mocks base method.
func (*MockStoreInterface) Delete ¶
func (m *MockStoreInterface) Delete(key string) error
Delete mocks base method.
func (*MockStoreInterface) EXPECT ¶
func (m *MockStoreInterface) EXPECT() *MockStoreInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStoreInterface) Get ¶
func (m *MockStoreInterface) Get(key string) (interface{}, error)
Get mocks base method.
func (*MockStoreInterface) GetType ¶
func (m *MockStoreInterface) GetType() string
GetType mocks base method.
func (*MockStoreInterface) GetWithTTL ¶
func (m *MockStoreInterface) GetWithTTL(key string) (interface{}, time.Duration, error)
GetWithTTL mocks base method.
type MockStoreInterfaceMockRecorder ¶
type MockStoreInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockStoreInterfaceMockRecorder is the mock recorder for MockStoreInterface.
func (*MockStoreInterfaceMockRecorder) Clear ¶
func (mr *MockStoreInterfaceMockRecorder) Clear() *gomock.Call
Clear indicates an expected call of Clear.
func (*MockStoreInterfaceMockRecorder) Delete ¶
func (mr *MockStoreInterfaceMockRecorder) Delete(key interface{}) *gomock.Call
Delete indicates an expected call of Delete.
func (*MockStoreInterfaceMockRecorder) Get ¶
func (mr *MockStoreInterfaceMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockStoreInterfaceMockRecorder) GetType ¶
func (mr *MockStoreInterfaceMockRecorder) GetType() *gomock.Call
GetType indicates an expected call of GetType.
func (*MockStoreInterfaceMockRecorder) GetWithTTL ¶
func (mr *MockStoreInterfaceMockRecorder) GetWithTTL(key interface{}) *gomock.Call
GetWithTTL indicates an expected call of GetWithTTL.
func (*MockStoreInterfaceMockRecorder) Set ¶
func (mr *MockStoreInterfaceMockRecorder) Set(key, value, expiration interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockStoreInterfaceMockRecorder) SetNX ¶ added in v1.9.1
func (mr *MockStoreInterfaceMockRecorder) SetNX(key, value, expiration interface{}) *gomock.Call
SetNX indicates an expected call of SetNX.