Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataManager ¶
DataManager is a data pruning interface
func MakeDataManager ¶
func MakeDataManager(ctx context.Context, cfg *PruneConfigurations, db idb.IndexerDb, logger *logrus.Logger) DataManager
MakeDataManager initializes resources need for removing data from data source
type PruneConfigurations ¶
type PruneConfigurations struct { // Rounds to keep, a value of zero results in no data pruning Rounds uint64 `yaml:"rounds"` // Interval used to prune the data. The values can be -1 to run at startup, // 0 to disable or N to run every N rounds. Interval Interval `yaml:"interval"` }
PruneConfigurations contains the configurations for data pruning
Click to show internal directories.
Click to hide internal directories.