interactor

package
v0.0.0-...-cb49113 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 3, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

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

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL