Documentation ¶
Index ¶
- type Checker
- type CleanupChecker
- type Trigger
- type Watcher
- func (this *Watcher) DeleteWatcher(userId string, watcherId string) (err error)
- func (this *Watcher) Run(batchSize int64) (count int, err error)
- func (this *Watcher) RunLoop(ctx context.Context, batchSize int64) error
- func (this *Watcher) Set(entity model.WatchedEntityInit) error
- func (this *Watcher) Start(ctx context.Context, wg *sync.WaitGroup) error
- func (this *Watcher) StartWithInterval(ctx context.Context, wg *sync.WaitGroup, interval time.Duration)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanupChecker ¶
type CleanupChecker interface {
Check(model.WatchedEntity) (remove bool, err error)
}
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func New ¶
func New(config configuration.Config, db db.Database, check Checker, trigger Trigger, cleanupChecker CleanupChecker) *Watcher
func (*Watcher) DeleteWatcher ¶
Click to show internal directories.
Click to hide internal directories.