Documentation ¶
Overview ¶
Package badger provides a Badger-backed node database.
Index ¶
- Variables
- func CheckSanity(ctx context.Context, cfg *api.Config, display DisplayHelper) error
- func Migrate(cfg *api.Config, helper MigrationHelper) (uint64, error)
- func New(cfg *api.Config) (api.NodeDB, error)
- func RenameNamespace(cfg *api.Config, newNamespace common.Namespace) error
- type DisplayHelper
- type MigrationHelper
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrVersionNotFound can be returned by the migration helper when the // relevant version can't be found in the history database. ErrVersionNotFound = fmt.Errorf("version not found") )
View Source
var Factory = &factory{}
Factory is the node database factory for the Badger backend.
Functions ¶
func CheckSanity ¶ added in v0.2100.0
CheckSanity checks the sanity of the node database by traversing all stored trees.
func Migrate ¶ added in v0.2100.0
func Migrate(cfg *api.Config, helper MigrationHelper) (uint64, error)
Migrate performs forward migrations between database versions.
Types ¶
type DisplayHelper ¶ added in v0.2100.0
type MigrationHelper ¶ added in v0.2100.0
Click to show internal directories.
Click to hide internal directories.