Documentation ¶
Overview ¶
Package mock_entityservice is a generated GoMock package.
Index ¶
- type MockAdapter
- func (m *MockAdapter) AddDepends(arg0 string, arg1 []string) (bool, error)
- func (m *MockAdapter) EXPECT() *MockAdapterMockRecorder
- func (m *MockAdapter) GetAll() ([]entityservice.EntityService, error)
- func (m *MockAdapter) GetByID(arg0 string) (*entityservice.EntityService, error)
- func (m *MockAdapter) GetCounters(arg0 context.Context, arg1 string) (mongo.Cursor, error)
- func (m *MockAdapter) GetEnabled() ([]entityservice.EntityService, error)
- func (m *MockAdapter) GetValid() ([]entityservice.EntityService, error)
- func (m *MockAdapter) RemoveDependByQuery(arg0 interface{}, arg1 string) ([]string, error)
- func (m *MockAdapter) RemoveDepends(arg0 string, arg1 []string) (bool, error)
- func (m *MockAdapter) UpdateBulk(arg0 context.Context, arg1 []mongo0.WriteModel) error
- func (m *MockAdapter) UpdateCounters(arg0 string, arg1 entityservice.AlarmCounters) error
- type MockAdapterMockRecorder
- func (mr *MockAdapterMockRecorder) AddDepends(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) GetAll() *gomock.Call
- func (mr *MockAdapterMockRecorder) GetByID(arg0 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) GetCounters(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) GetEnabled() *gomock.Call
- func (mr *MockAdapterMockRecorder) GetValid() *gomock.Call
- func (mr *MockAdapterMockRecorder) RemoveDependByQuery(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) RemoveDepends(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) UpdateBulk(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockAdapterMockRecorder) UpdateCounters(arg0, arg1 interface{}) *gomock.Call
- type MockCountersCache
- func (m *MockCountersCache) ClearAll(arg0 context.Context) error
- func (m *MockCountersCache) EXPECT() *MockCountersCacheMockRecorder
- func (m *MockCountersCache) KeepOnly(arg0 context.Context, arg1 []string) error
- func (m *MockCountersCache) Remove(arg0 context.Context, arg1 string) error
- func (m *MockCountersCache) RemoveAndGet(arg0 context.Context, arg1 string) (*entityservice.AlarmCounters, error)
- func (m *MockCountersCache) Replace(arg0 context.Context, arg1 string, arg2 entityservice.AlarmCounters) error
- func (m *MockCountersCache) Update(arg0 context.Context, arg1 map[string]entityservice.AlarmCounters) (map[string]entityservice.AlarmCounters, error)
- type MockCountersCacheMockRecorder
- func (mr *MockCountersCacheMockRecorder) ClearAll(arg0 interface{}) *gomock.Call
- func (mr *MockCountersCacheMockRecorder) KeepOnly(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCountersCacheMockRecorder) Remove(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCountersCacheMockRecorder) RemoveAndGet(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockCountersCacheMockRecorder) Replace(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockCountersCacheMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
- type MockStorage
- func (m *MockStorage) Delete(arg0 context.Context, arg1 string) error
- func (m *MockStorage) EXPECT() *MockStorageMockRecorder
- func (m *MockStorage) Get(arg0 context.Context, arg1 string) (*entityservice.ServiceData, error)
- func (m *MockStorage) Load(arg0 context.Context) ([]entityservice.ServiceData, error)
- func (m *MockStorage) Save(arg0 context.Context, arg1 entityservice.ServiceData) error
- func (m *MockStorage) SaveAll(arg0 context.Context, arg1 []entityservice.ServiceData) error
- type MockStorageMockRecorder
- func (mr *MockStorageMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) Load(arg0 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) Save(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockStorageMockRecorder) SaveAll(arg0, arg1 interface{}) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAdapter ¶
type MockAdapter struct {
// contains filtered or unexported fields
}
MockAdapter is a mock of Adapter interface
func NewMockAdapter ¶
func NewMockAdapter(ctrl *gomock.Controller) *MockAdapter
NewMockAdapter creates a new mock instance
func (*MockAdapter) AddDepends ¶
func (m *MockAdapter) AddDepends(arg0 string, arg1 []string) (bool, error)
AddDepends mocks base method
func (*MockAdapter) EXPECT ¶
func (m *MockAdapter) EXPECT() *MockAdapterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockAdapter) GetAll ¶
func (m *MockAdapter) GetAll() ([]entityservice.EntityService, error)
GetAll mocks base method
func (*MockAdapter) GetByID ¶
func (m *MockAdapter) GetByID(arg0 string) (*entityservice.EntityService, error)
GetByID mocks base method
func (*MockAdapter) GetCounters ¶
GetCounters mocks base method
func (*MockAdapter) GetEnabled ¶
func (m *MockAdapter) GetEnabled() ([]entityservice.EntityService, error)
GetEnabled mocks base method
func (*MockAdapter) GetValid ¶
func (m *MockAdapter) GetValid() ([]entityservice.EntityService, error)
GetValid mocks base method
func (*MockAdapter) RemoveDependByQuery ¶
func (m *MockAdapter) RemoveDependByQuery(arg0 interface{}, arg1 string) ([]string, error)
RemoveDependByQuery mocks base method
func (*MockAdapter) RemoveDepends ¶
func (m *MockAdapter) RemoveDepends(arg0 string, arg1 []string) (bool, error)
RemoveDepends mocks base method
func (*MockAdapter) UpdateBulk ¶
func (m *MockAdapter) UpdateBulk(arg0 context.Context, arg1 []mongo0.WriteModel) error
UpdateBulk mocks base method
func (*MockAdapter) UpdateCounters ¶
func (m *MockAdapter) UpdateCounters(arg0 string, arg1 entityservice.AlarmCounters) error
UpdateCounters mocks base method
type MockAdapterMockRecorder ¶
type MockAdapterMockRecorder struct {
// contains filtered or unexported fields
}
MockAdapterMockRecorder is the mock recorder for MockAdapter
func (*MockAdapterMockRecorder) AddDepends ¶
func (mr *MockAdapterMockRecorder) AddDepends(arg0, arg1 interface{}) *gomock.Call
AddDepends indicates an expected call of AddDepends
func (*MockAdapterMockRecorder) GetAll ¶
func (mr *MockAdapterMockRecorder) GetAll() *gomock.Call
GetAll indicates an expected call of GetAll
func (*MockAdapterMockRecorder) GetByID ¶
func (mr *MockAdapterMockRecorder) GetByID(arg0 interface{}) *gomock.Call
GetByID indicates an expected call of GetByID
func (*MockAdapterMockRecorder) GetCounters ¶
func (mr *MockAdapterMockRecorder) GetCounters(arg0, arg1 interface{}) *gomock.Call
GetCounters indicates an expected call of GetCounters
func (*MockAdapterMockRecorder) GetEnabled ¶
func (mr *MockAdapterMockRecorder) GetEnabled() *gomock.Call
GetEnabled indicates an expected call of GetEnabled
func (*MockAdapterMockRecorder) GetValid ¶
func (mr *MockAdapterMockRecorder) GetValid() *gomock.Call
GetValid indicates an expected call of GetValid
func (*MockAdapterMockRecorder) RemoveDependByQuery ¶
func (mr *MockAdapterMockRecorder) RemoveDependByQuery(arg0, arg1 interface{}) *gomock.Call
RemoveDependByQuery indicates an expected call of RemoveDependByQuery
func (*MockAdapterMockRecorder) RemoveDepends ¶
func (mr *MockAdapterMockRecorder) RemoveDepends(arg0, arg1 interface{}) *gomock.Call
RemoveDepends indicates an expected call of RemoveDepends
func (*MockAdapterMockRecorder) UpdateBulk ¶
func (mr *MockAdapterMockRecorder) UpdateBulk(arg0, arg1 interface{}) *gomock.Call
UpdateBulk indicates an expected call of UpdateBulk
func (*MockAdapterMockRecorder) UpdateCounters ¶
func (mr *MockAdapterMockRecorder) UpdateCounters(arg0, arg1 interface{}) *gomock.Call
UpdateCounters indicates an expected call of UpdateCounters
type MockCountersCache ¶
type MockCountersCache struct {
// contains filtered or unexported fields
}
MockCountersCache is a mock of CountersCache interface
func NewMockCountersCache ¶
func NewMockCountersCache(ctrl *gomock.Controller) *MockCountersCache
NewMockCountersCache creates a new mock instance
func (*MockCountersCache) ClearAll ¶
func (m *MockCountersCache) ClearAll(arg0 context.Context) error
ClearAll mocks base method
func (*MockCountersCache) EXPECT ¶
func (m *MockCountersCache) EXPECT() *MockCountersCacheMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockCountersCache) KeepOnly ¶
func (m *MockCountersCache) KeepOnly(arg0 context.Context, arg1 []string) error
KeepOnly mocks base method
func (*MockCountersCache) Remove ¶
func (m *MockCountersCache) Remove(arg0 context.Context, arg1 string) error
Remove mocks base method
func (*MockCountersCache) RemoveAndGet ¶
func (m *MockCountersCache) RemoveAndGet(arg0 context.Context, arg1 string) (*entityservice.AlarmCounters, error)
RemoveAndGet mocks base method
func (*MockCountersCache) Replace ¶
func (m *MockCountersCache) Replace(arg0 context.Context, arg1 string, arg2 entityservice.AlarmCounters) error
Replace mocks base method
func (*MockCountersCache) Update ¶
func (m *MockCountersCache) Update(arg0 context.Context, arg1 map[string]entityservice.AlarmCounters) (map[string]entityservice.AlarmCounters, error)
Update mocks base method
type MockCountersCacheMockRecorder ¶
type MockCountersCacheMockRecorder struct {
// contains filtered or unexported fields
}
MockCountersCacheMockRecorder is the mock recorder for MockCountersCache
func (*MockCountersCacheMockRecorder) ClearAll ¶
func (mr *MockCountersCacheMockRecorder) ClearAll(arg0 interface{}) *gomock.Call
ClearAll indicates an expected call of ClearAll
func (*MockCountersCacheMockRecorder) KeepOnly ¶
func (mr *MockCountersCacheMockRecorder) KeepOnly(arg0, arg1 interface{}) *gomock.Call
KeepOnly indicates an expected call of KeepOnly
func (*MockCountersCacheMockRecorder) Remove ¶
func (mr *MockCountersCacheMockRecorder) Remove(arg0, arg1 interface{}) *gomock.Call
Remove indicates an expected call of Remove
func (*MockCountersCacheMockRecorder) RemoveAndGet ¶
func (mr *MockCountersCacheMockRecorder) RemoveAndGet(arg0, arg1 interface{}) *gomock.Call
RemoveAndGet indicates an expected call of RemoveAndGet
func (*MockCountersCacheMockRecorder) Replace ¶
func (mr *MockCountersCacheMockRecorder) Replace(arg0, arg1, arg2 interface{}) *gomock.Call
Replace indicates an expected call of Replace
func (*MockCountersCacheMockRecorder) Update ¶
func (mr *MockCountersCacheMockRecorder) Update(arg0, arg1 interface{}) *gomock.Call
Update indicates an expected call of Update
type MockStorage ¶
type MockStorage struct {
// contains filtered or unexported fields
}
MockStorage is a mock of Storage interface
func NewMockStorage ¶
func NewMockStorage(ctrl *gomock.Controller) *MockStorage
NewMockStorage creates a new mock instance
func (*MockStorage) Delete ¶
func (m *MockStorage) Delete(arg0 context.Context, arg1 string) error
Delete mocks base method
func (*MockStorage) EXPECT ¶
func (m *MockStorage) EXPECT() *MockStorageMockRecorder
EXPECT returns an object that allows the caller to indicate expected use
func (*MockStorage) Get ¶
func (m *MockStorage) Get(arg0 context.Context, arg1 string) (*entityservice.ServiceData, error)
Get mocks base method
func (*MockStorage) Load ¶
func (m *MockStorage) Load(arg0 context.Context) ([]entityservice.ServiceData, error)
Load mocks base method
func (*MockStorage) Save ¶
func (m *MockStorage) Save(arg0 context.Context, arg1 entityservice.ServiceData) error
Save mocks base method
func (*MockStorage) SaveAll ¶
func (m *MockStorage) SaveAll(arg0 context.Context, arg1 []entityservice.ServiceData) error
SaveAll mocks base method
type MockStorageMockRecorder ¶
type MockStorageMockRecorder struct {
// contains filtered or unexported fields
}
MockStorageMockRecorder is the mock recorder for MockStorage
func (*MockStorageMockRecorder) Delete ¶
func (mr *MockStorageMockRecorder) Delete(arg0, arg1 interface{}) *gomock.Call
Delete indicates an expected call of Delete
func (*MockStorageMockRecorder) Get ¶
func (mr *MockStorageMockRecorder) Get(arg0, arg1 interface{}) *gomock.Call
Get indicates an expected call of Get
func (*MockStorageMockRecorder) Load ¶
func (mr *MockStorageMockRecorder) Load(arg0 interface{}) *gomock.Call
Load indicates an expected call of Load
func (*MockStorageMockRecorder) Save ¶
func (mr *MockStorageMockRecorder) Save(arg0, arg1 interface{}) *gomock.Call
Save indicates an expected call of Save
func (*MockStorageMockRecorder) SaveAll ¶
func (mr *MockStorageMockRecorder) SaveAll(arg0, arg1 interface{}) *gomock.Call
SaveAll indicates an expected call of SaveAll