Documentation ¶
Index ¶
Constants ¶
View Source
const ( // whether to delete the database at startup CfgTangleDeleteDatabase = "deleteDatabase" // whether to delete the database and snapshots at startup CfgTangleDeleteAll = "deleteAll" )
View Source
const ( // the used database engine (pebble/bolt/rocksdb) CfgDatabaseEngine = "db.engine" // the path to the database folder CfgDatabasePath = "db.path" // whether to automatically start revalidation on startup if the database is corrupted CfgDatabaseAutoRevalidation = "db.autoRevalidation" // ignore the check for corrupted databases (should only be used for debug reasons) CfgDatabaseDebug = "db.debug" )
Variables ¶
View Source
var (
CorePlugin *node.CorePlugin
)
Functions ¶
func DatabaseCleanupCaller ¶
func DatabaseCleanupCaller(handler interface{}, params ...interface{})
func RunGarbageCollection ¶
func RunGarbageCollection()
Types ¶
type DatabaseCleanup ¶
func (*DatabaseCleanup) MarshalJSON ¶
func (c *DatabaseCleanup) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.