db

package
v5.0.3 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2024 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertDatabase added in v5.0.2

func ConvertDatabase(ctx context.Context, sourceDataDir string, targetDataDir string, minimalToComplete bool) error

ConvertDatabase converts a minimal database to a complete database or a complete database to a minimal database. Delete the source database after conversion.

func MigrateDown

func MigrateDown(cliCtx *cli.Context) error

MigrateDown for a validator database.

func MigrateUp

func MigrateUp(cliCtx *cli.Context) error

MigrateUp for a validator database.

func Restore

func Restore(cliCtx *cli.Context) error

Restore a Prysm validator database.

Types

type Database

type Database = iface.ValidatorDB

Database defines the necessary methods for Prysm's validator client backend which may be implemented by any key-value or relational database in practice. This is the full database interface which should not be used often. Prefer a more restrictive interface in this package.

Directories

Path Synopsis
Package iface defines an interface for the validator database.
Package iface defines an interface for the validator database.
Package kv defines a persistent backend for the validator service.
Package kv defines a persistent backend for the validator service.

Jump to

Keyboard shortcuts

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