Documentation ¶
Index ¶
- type LookoutConfig
- type LookoutConfigCreate
- type LookoutConfigUpdate
- type LookoutManager
- type LookoutRepo
- type MockLookoutRepo
- func (_m *MockLookoutRepo) Create(data LookoutConfigCreate) (*LookoutConfig, error)
- func (_m *MockLookoutRepo) Delete(id int) (*LookoutConfig, error)
- func (_m *MockLookoutRepo) Get() ([]LookoutConfig, error)
- func (_m *MockLookoutRepo) GetById(id int) (*LookoutConfig, error)
- func (_m *MockLookoutRepo) Update(id int, data LookoutConfigUpdate) (*LookoutConfig, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LookoutConfig ¶
type LookoutConfigCreate ¶
type LookoutConfigUpdate ¶
type LookoutManager ¶
type LookoutManager interface { Start() error Watch(lookoutId int) error Remove(lookoutId int) error Reload(lookoutId int) error }
func NewLookoutManager ¶
func NewLookoutManager(lookoutRepo LookoutRepo, watcher watch.Watcher) LookoutManager
type LookoutRepo ¶
type LookoutRepo interface { Get() ([]LookoutConfig, error) GetById(id int) (*LookoutConfig, error) Create(data LookoutConfigCreate) (*LookoutConfig, error) Update(id int, data LookoutConfigUpdate) (*LookoutConfig, error) Delete(id int) (*LookoutConfig, error) }
type MockLookoutRepo ¶
MockLookoutRepo is an autogenerated mock type for the LookoutRepo type
func NewMockLookoutRepo ¶
func NewMockLookoutRepo(t mockConstructorTestingTNewMockLookoutRepo) *MockLookoutRepo
NewMockLookoutRepo creates a new instance of MockLookoutRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MockLookoutRepo) Create ¶
func (_m *MockLookoutRepo) Create(data LookoutConfigCreate) (*LookoutConfig, error)
Create provides a mock function with given fields: data
func (*MockLookoutRepo) Delete ¶
func (_m *MockLookoutRepo) Delete(id int) (*LookoutConfig, error)
Delete provides a mock function with given fields: id
func (*MockLookoutRepo) Get ¶
func (_m *MockLookoutRepo) Get() ([]LookoutConfig, error)
Get provides a mock function with given fields:
func (*MockLookoutRepo) GetById ¶
func (_m *MockLookoutRepo) GetById(id int) (*LookoutConfig, error)
GetById provides a mock function with given fields: id
func (*MockLookoutRepo) Update ¶
func (_m *MockLookoutRepo) Update(id int, data LookoutConfigUpdate) (*LookoutConfig, error)
Update provides a mock function with given fields: id, data
Source Files ¶
Click to show internal directories.
Click to hide internal directories.