Documentation ¶
Index ¶
- type Repo
- func (r *Repo) CreateWatcher(watcher *models.Watcher) (*models.Watcher, error)
- func (r *Repo) DeleteWatcher(watcherID string) error
- func (r *Repo) FindWatcherByID(watcherID string) (*models.Watcher, error)
- func (r *Repo) FindWatcherByName(watcherName string) (*models.Watcher, error)
- func (r *Repo) FindWatchers() ([]*models.Watcher, error)
- func (r *Repo) UpdateWatcher(watcher *models.Watcher) (*models.Watcher, error)
- type Repository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
func (*Repo) CreateWatcher ¶
func (*Repo) DeleteWatcher ¶
func (*Repo) FindWatcherByID ¶
func (*Repo) FindWatcherByName ¶
type Repository ¶
type Repository interface { CreateWatcher(watcher *models.Watcher) (*models.Watcher, error) FindWatchers() ([]*models.Watcher, error) FindWatcherByID(watcherID string) (*models.Watcher, error) FindWatcherByName(watcherName string) (*models.Watcher, error) UpdateWatcher(watcher *models.Watcher) (*models.Watcher, error) DeleteWatcher(watcherID string) error }
func New ¶
func New(db *gorm.DB) Repository
Click to show internal directories.
Click to hide internal directories.