Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Manifold ¶
func Manifold(config ManifoldConfig) dependency.Manifold
Manifold returns a Manifold that encapsulates the cleanup worker.
func NewCleaner ¶
NewCleaner returns a worker.Worker that runs state.Cleanup() periodically, and whenever 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 Logger ¶
type Logger interface {
Errorf(string, ...interface{})
}
Logger represents the methods used by the worker to log information.
type ManifoldConfig ¶
ManifoldConfig describes the resources used by the cleanup worker.
func (ManifoldConfig) Validate ¶
func (config ManifoldConfig) Validate() error
Validate is called by start to check for bad configuration.
type StateCleaner ¶
type StateCleaner interface {
Cleanup() error
WatchCleanups() (watcher.NotifyWatcher, error)
}
Click to show internal directories.
Click to hide internal directories.