database

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2021 License: Apache-2.0 Imports: 25 Imported by: 0

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

type DatabaseCleanup struct {
	Start time.Time
	End   time.Time
}

func (*DatabaseCleanup) MarshalJSON

func (c *DatabaseCleanup) MarshalJSON() ([]byte, error)

type Events

type Events struct {
	DatabaseCleanup    *events.Event
	DatabaseCompaction *events.Event
}

Jump to

Keyboard shortcuts

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