Documentation ¶
Overview ¶
Package mock_ttllru is a generated GoMock package.
Index ¶
- type MockCacher
- type MockCacherMockRecorder
- type MockPeekingCacher
- func (m *MockPeekingCacher) Add(key, value interface{}) bool
- func (m *MockPeekingCacher) EXPECT() *MockPeekingCacherMockRecorder
- func (m *MockPeekingCacher) Get(key interface{}) (interface{}, bool)
- func (m *MockPeekingCacher) Peek(key interface{}) (interface{}, time.Time, bool)
- func (m *MockPeekingCacher) Remove(key interface{}) bool
- type MockPeekingCacherMockRecorder
- func (mr *MockPeekingCacherMockRecorder) Add(key, value interface{}) *gomock.Call
- func (mr *MockPeekingCacherMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockPeekingCacherMockRecorder) Peek(key interface{}) *gomock.Call
- func (mr *MockPeekingCacherMockRecorder) Remove(key interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockCacher ¶ added in v0.5.0
type MockCacher struct {
// contains filtered or unexported fields
}
MockCacher is a mock of Cacher interface.
func NewMockCacher ¶ added in v0.5.0
func NewMockCacher(ctrl *gomock.Controller) *MockCacher
NewMockCacher creates a new mock instance.
func (*MockCacher) Add ¶ added in v0.5.0
func (m *MockCacher) Add(key, value interface{}) bool
Add mocks base method.
func (*MockCacher) EXPECT ¶ added in v0.5.0
func (m *MockCacher) EXPECT() *MockCacherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCacher) Get ¶ added in v0.5.0
func (m *MockCacher) Get(key interface{}) (interface{}, bool)
Get mocks base method.
func (*MockCacher) Remove ¶ added in v0.5.0
func (m *MockCacher) Remove(key interface{}) bool
Remove mocks base method.
type MockCacherMockRecorder ¶ added in v0.5.0
type MockCacherMockRecorder struct {
// contains filtered or unexported fields
}
MockCacherMockRecorder is the mock recorder for MockCacher.
func (*MockCacherMockRecorder) Add ¶ added in v0.5.0
func (mr *MockCacherMockRecorder) Add(key, value interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockCacherMockRecorder) Get ¶ added in v0.5.0
func (mr *MockCacherMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockCacherMockRecorder) Remove ¶ added in v0.5.0
func (mr *MockCacherMockRecorder) Remove(key interface{}) *gomock.Call
Remove indicates an expected call of Remove.
type MockPeekingCacher ¶ added in v0.5.0
type MockPeekingCacher struct {
// contains filtered or unexported fields
}
MockPeekingCacher is a mock of PeekingCacher interface.
func NewMockPeekingCacher ¶ added in v0.5.0
func NewMockPeekingCacher(ctrl *gomock.Controller) *MockPeekingCacher
NewMockPeekingCacher creates a new mock instance.
func (*MockPeekingCacher) Add ¶ added in v0.5.0
func (m *MockPeekingCacher) Add(key, value interface{}) bool
Add mocks base method.
func (*MockPeekingCacher) EXPECT ¶ added in v0.5.0
func (m *MockPeekingCacher) EXPECT() *MockPeekingCacherMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockPeekingCacher) Get ¶ added in v0.5.0
func (m *MockPeekingCacher) Get(key interface{}) (interface{}, bool)
Get mocks base method.
func (*MockPeekingCacher) Peek ¶ added in v0.5.0
func (m *MockPeekingCacher) Peek(key interface{}) (interface{}, time.Time, bool)
Peek mocks base method.
func (*MockPeekingCacher) Remove ¶ added in v0.5.0
func (m *MockPeekingCacher) Remove(key interface{}) bool
Remove mocks base method.
type MockPeekingCacherMockRecorder ¶ added in v0.5.0
type MockPeekingCacherMockRecorder struct {
// contains filtered or unexported fields
}
MockPeekingCacherMockRecorder is the mock recorder for MockPeekingCacher.
func (*MockPeekingCacherMockRecorder) Add ¶ added in v0.5.0
func (mr *MockPeekingCacherMockRecorder) Add(key, value interface{}) *gomock.Call
Add indicates an expected call of Add.
func (*MockPeekingCacherMockRecorder) Get ¶ added in v0.5.0
func (mr *MockPeekingCacherMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockPeekingCacherMockRecorder) Peek ¶ added in v0.5.0
func (mr *MockPeekingCacherMockRecorder) Peek(key interface{}) *gomock.Call
Peek indicates an expected call of Peek.
func (*MockPeekingCacherMockRecorder) Remove ¶ added in v0.5.0
func (mr *MockPeekingCacherMockRecorder) Remove(key interface{}) *gomock.Call
Remove indicates an expected call of Remove.