Documentation
¶
Index ¶
- type ProcessorInterface
- type Watcher
- func (w *Watcher) ClearQueue() error
- func (w *Watcher) Close() error
- func (w *Watcher) GetQueueItems() ([]queue.QueueItem, error)
- func (w *Watcher) GetQueueStats() (map[string]interface{}, error)
- func (w *Watcher) RemoveFromQueue(id string) error
- func (w *Watcher) Start(ctx context.Context) error
- func (w *Watcher) TriggerScan(ctx context.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProcessorInterface ¶ added in v0.0.6
ProcessorInterface defines the interface for checking running jobs
type Watcher ¶
type Watcher struct {
// contains filtered or unexported fields
}
func New ¶
func New( cfg config.WatcherConfig, q queue.QueueInterface, processor ProcessorInterface, watchFolder string, ) *Watcher
func (*Watcher) ClearQueue ¶ added in v0.0.6
ClearQueue removes all completed and failed items from the queue via queue
func (*Watcher) GetQueueItems ¶ added in v0.0.6
GetQueueItems returns queue items via the queue
func (*Watcher) GetQueueStats ¶ added in v0.0.6
GetQueueStats returns statistics about the queue via queue
func (*Watcher) RemoveFromQueue ¶ added in v0.0.6
RemoveFromQueue removes an item from the queue via queue
func (*Watcher) TriggerScan ¶ added in v0.0.6
TriggerScan triggers an immediate directory scan
Click to show internal directories.
Click to hide internal directories.