Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Manifold ¶
func Manifold(config ManifoldConfig) dependency.Manifold
Manifold returns a dependency.Manifold that will run a txn pruner worker.
Types ¶
type ManifoldConfig ¶
type ManifoldConfig struct { ClockName string StateName string PruneInterval time.Duration NewWorker func(TransactionPruner, time.Duration, clock.Clock) worker.Worker }
ManifoldConfig holds the information necessary to run a txn pruner worker in a dependency.Engine.
func (ManifoldConfig) Validate ¶
func (config ManifoldConfig) Validate() error
type TransactionPruner ¶
type TransactionPruner interface {
MaybePruneTransactions() error
}
TransactionPruner defines the interface for types capable of pruning transactions.
Click to show internal directories.
Click to hide internal directories.