Documentation ¶
Index ¶
- type WatcherUseCase
- func (u *WatcherUseCase) Create(serviceName, transactionID, eventType, content, importance, provider string) (*domain.WatcherEntity, error)
- func (u *WatcherUseCase) Delete(id string) error
- func (u *WatcherUseCase) Get(id string) (*domain.WatcherEntity, error)
- func (u *WatcherUseCase) List(token, size string, filterParams util.FilterParams) ([]*domain.WatcherEntity, string, error)
- func (u *WatcherUseCase) Update(...) (*domain.WatcherEntity, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WatcherUseCase ¶
type WatcherUseCase struct {
// contains filtered or unexported fields
}
func NewWatcherUseCase ¶
func NewWatcherUseCase(ctx context.Context, logger log.Logger, repository domain.WatcherRepository) *WatcherUseCase
func (*WatcherUseCase) Create ¶
func (u *WatcherUseCase) Create(serviceName, transactionID, eventType, content, importance, provider string) (*domain.WatcherEntity, error)
Create Generate and save a new watcher entity
func (*WatcherUseCase) Delete ¶
func (u *WatcherUseCase) Delete(id string) error
Delete Remove an specific watcher entity
func (*WatcherUseCase) Get ¶
func (u *WatcherUseCase) Get(id string) (*domain.WatcherEntity, error)
Get Obtain an specific watcher entity
func (*WatcherUseCase) List ¶
func (u *WatcherUseCase) List(token, size string, filterParams util.FilterParams) ([]*domain.WatcherEntity, string, error)
List Obtain a watcher's entities list
func (*WatcherUseCase) Update ¶
func (u *WatcherUseCase) Update(id, serviceName, transactionID, eventType, content, importance, provider string) (*domain.WatcherEntity, error)
Update Modify an specific watcher entity
Click to show internal directories.
Click to hide internal directories.