Documentation ¶
Overview ¶
Package monitor identifies new backups as they become available. It watches a given backup directory, determining when a backup completes using a small state machine.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Monitor ¶
type Monitor struct { // Backups contains paths to newly completed backups. These paths will be // relative or absolute, depending on the path provided when creating the // monitor. Backups are safe to read immediately. Backups <-chan string // Errors contains errors returned by the underlying filesystem watcher. Errors <-chan error // contains filtered or unexported fields }
Monitor encapsulates the output of watching for UniFi backups.
Click to show internal directories.
Click to hide internal directories.