database

package
v1.0.0-rc.5 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DBVersion uint32 = 2
)

Variables

View Source
var (
	Component *app.Component
)
View Source
var ParamsDatabase = &ParametersDatabase{}

Functions

This section is empty.

Types

type ParametersDatabase

type ParametersDatabase struct {
	Tangle struct {
		// Path defines the path to the database folder.
		Path string `default:"database/tangle" usage:"the path to the tangle database folder"`
	}

	Snapshot struct {
		// Path defines the path to the database folder.
		Path string `default:"database/snapshot" usage:"the path to the snapshot database folder"`
	}

	Spent struct {
		// Path defines the path to the database folder.
		Path string `default:"database/spent" usage:"the path to the spent database folder"`
	}

	// Debug defines whether to ignore the check for corrupted databases (should only be used for debug reasons).
	Debug bool `default:"false" usage:"ignore the check for corrupted databases (should only be used for debug reasons)"`
}

ParametersDatabase contains the definition of the parameters used by the ParametersDatabase.

Jump to

Keyboard shortcuts

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