Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Manifold ¶
func Manifold(cfg ManifoldConfig) dependency.Manifold
Manifold returns a dependency.Manifold that will run the lease expiry worker.
Types ¶
type Config ¶
type Config struct { Clock clock.Clock Logger Logger TrackedDB coredatabase.TrackedDB }
Config encapsulates the configuration options for instantiating a new lease expiry worker.
type ManifoldConfig ¶
type ManifoldConfig struct { ClockName string DBAccessorName string Logger Logger NewWorker func(Config) (worker.Worker, error) }
ManifoldConfig holds the resources required to start the lease expiry worker.
func (ManifoldConfig) Validate ¶
func (c ManifoldConfig) Validate() error
Validate checks that the config has all the required values.
Click to show internal directories.
Click to hide internal directories.