Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCleaner ¶
func NewCleaner(st StateCleaner) worker.Worker
NewCleaner returns a worker.Worker that runs state.Cleanup() if the CleanupWatcher signals documents marked for deletion.
Types ¶
type Cleaner ¶
type Cleaner struct {
// contains filtered or unexported fields
}
Cleaner is responsible for cleaning up the state.
type StateCleaner ¶
type StateCleaner interface { Cleanup() error WatchCleanups() (watcher.NotifyWatcher, error) }
Click to show internal directories.
Click to hide internal directories.