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 statushistorypruner worker.
Types ¶
type Config ¶
type Config struct { Facade Facade ModelConfigService ModelConfigService PruneInterval time.Duration Clock clock.Clock Logger logger.Logger }
Config holds all necessary attributes to start a pruner worker.
type ManifoldConfig ¶
type ManifoldConfig struct { APICallerName string DomainServicesName string Clock clock.Clock PruneInterval time.Duration NewWorker func(Config) (worker.Worker, error) NewClient func(base.APICaller) Facade Logger logger.Logger }
ManifoldConfig describes the resources and configuration on which the statushistorypruner worker depends.
func (ManifoldConfig) Validate ¶
func (config ManifoldConfig) Validate() error
Validate is called by start to check for bad configuration.
type ModelConfigService ¶
type PrunerWorker ¶
type PrunerWorker struct {
// contains filtered or unexported fields
}
PrunerWorker prunes status history or action records at regular intervals.
func (*PrunerWorker) Catacomb ¶
func (w *PrunerWorker) Catacomb() *catacomb.Catacomb
Catacomb returns the prune worker's catacomb.
func (*PrunerWorker) Config ¶
func (w *PrunerWorker) Config() *Config
Config return the prune worker's config.
Click to show internal directories.
Click to hide internal directories.