clean

package
v1.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 20, 2023 License: GPL-3.0 Imports: 19 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewOldDataCleanerProvider

func NewOldDataCleanerProvider(
	nodeTypeProvider NodeTypeProviderHandler,
	pruningStorerConfig config.StoragePruningConfig,
) (*oldDataCleanerProvider, error)

NewOldDataCleanerProvider returns a new instance of oldDataCleanerProvider

func NewOldDatabaseCleaner

func NewOldDatabaseCleaner(args ArgsOldDatabaseCleaner) (*oldDatabaseCleaner, error)

NewOldDatabaseCleaner returns a new instance of oldDatabaseCleaner

Types

type ArgsOldDatabaseCleaner

type ArgsOldDatabaseCleaner struct {
	DatabasePath           string
	StorageListProvider    StorageListProviderHandler
	EpochStartNotifier     EpochStartNotifier
	OldDataCleanerProvider OldDataCleanerProvider
}

ArgsOldDatabaseCleaner holds the arguments needed for creating an oldDatabaseCleaner

type EpochStartNotifier

type EpochStartNotifier interface {
	RegisterHandler(handler epochStart.ActionHandler)
	IsInterfaceNil() bool
}

EpochStartNotifier defines what a component which will handle registration to epoch start event should do

type NodeTypeProviderHandler

type NodeTypeProviderHandler interface {
	SetType(nodeType core.NodeType)
	GetType() core.NodeType
	IsInterfaceNil() bool
}

NodeTypeProviderHandler defines the actions needed for a component that can handle the node type

type OldDataCleanerProvider

type OldDataCleanerProvider interface {
	ShouldClean() bool
	IsInterfaceNil() bool
}

OldDataCleanerProvider defines what a component that handles the deletion or keeping of old data should do

type StorageListProviderHandler

type StorageListProviderHandler interface {
	GetAllStorers() map[dataRetriever.UnitType]storage.Storer
	IsInterfaceNil() bool
}

StorageListProviderHandler defines the actions needed for returning all storers

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL