Documentation ¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type MockItemsI
- type MockItemsIMockRecorder
- type MockServerCache
- func (m *MockServerCache) Count() int
- func (m *MockServerCache) EXPECT() *MockServerCacheMockRecorder
- func (m *MockServerCache) Get(key string) (interface{}, bool)
- func (m *MockServerCache) Set(key string, data interface{}) error
- func (m *MockServerCache) SetCacheSizeLimit(limit int)
- func (m *MockServerCache) SetTTL(ttl time.Duration)
- type MockServerCacheMockRecorder
- func (mr *MockServerCacheMockRecorder) Count() *gomock.Call
- func (mr *MockServerCacheMockRecorder) Get(key interface{}) *gomock.Call
- func (mr *MockServerCacheMockRecorder) Set(key, data interface{}) *gomock.Call
- func (mr *MockServerCacheMockRecorder) SetCacheSizeLimit(limit interface{}) *gomock.Call
- func (mr *MockServerCacheMockRecorder) SetTTL(ttl interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockItemsI ¶
type MockItemsI struct {
// contains filtered or unexported fields
}
MockItemsI is a mock of ItemsI interface.
func NewMockItemsI ¶
func NewMockItemsI(ctrl *gomock.Controller) *MockItemsI
NewMockItemsI creates a new mock instance.
func (*MockItemsI) EXPECT ¶
func (m *MockItemsI) EXPECT() *MockItemsIMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockItemsIMockRecorder ¶
type MockItemsIMockRecorder struct {
// contains filtered or unexported fields
}
MockItemsIMockRecorder is the mock recorder for MockItemsI.
func (*MockItemsIMockRecorder) Create ¶
func (mr *MockItemsIMockRecorder) Create(i interface{}) *gomock.Call
Create indicates an expected call of Create.
func (*MockItemsIMockRecorder) GetAll ¶
func (mr *MockItemsIMockRecorder) GetAll() *gomock.Call
GetAll indicates an expected call of GetAll.
func (*MockItemsIMockRecorder) GetById ¶
func (mr *MockItemsIMockRecorder) GetById(id interface{}) *gomock.Call
GetById indicates an expected call of GetById.
type MockServerCache ¶
type MockServerCache struct {
// contains filtered or unexported fields
}
MockServerCache is a mock of ServerCache interface.
func NewMockServerCache ¶
func NewMockServerCache(ctrl *gomock.Controller) *MockServerCache
NewMockServerCache creates a new mock instance.
func (*MockServerCache) EXPECT ¶
func (m *MockServerCache) EXPECT() *MockServerCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockServerCache) Get ¶
func (m *MockServerCache) Get(key string) (interface{}, bool)
Get mocks base method.
func (*MockServerCache) Set ¶
func (m *MockServerCache) Set(key string, data interface{}) error
Set mocks base method.
func (*MockServerCache) SetCacheSizeLimit ¶
func (m *MockServerCache) SetCacheSizeLimit(limit int)
SetCacheSizeLimit mocks base method.
func (*MockServerCache) SetTTL ¶
func (m *MockServerCache) SetTTL(ttl time.Duration)
SetTTL mocks base method.
type MockServerCacheMockRecorder ¶
type MockServerCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockServerCacheMockRecorder is the mock recorder for MockServerCache.
func (*MockServerCacheMockRecorder) Count ¶
func (mr *MockServerCacheMockRecorder) Count() *gomock.Call
Count indicates an expected call of Count.
func (*MockServerCacheMockRecorder) Get ¶
func (mr *MockServerCacheMockRecorder) Get(key interface{}) *gomock.Call
Get indicates an expected call of Get.
func (*MockServerCacheMockRecorder) Set ¶
func (mr *MockServerCacheMockRecorder) Set(key, data interface{}) *gomock.Call
Set indicates an expected call of Set.
func (*MockServerCacheMockRecorder) SetCacheSizeLimit ¶
func (mr *MockServerCacheMockRecorder) SetCacheSizeLimit(limit interface{}) *gomock.Call
SetCacheSizeLimit indicates an expected call of SetCacheSizeLimit.
func (*MockServerCacheMockRecorder) SetTTL ¶
func (mr *MockServerCacheMockRecorder) SetTTL(ttl interface{}) *gomock.Call
SetTTL indicates an expected call of SetTTL.