kvcfg

package
v0.0.0-...-ff78b6e Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	HistoryV3 = ConfigKey("history.v3")
)

Functions

This section is empty.

Types

type ConfigKey

type ConfigKey []byte

func (ConfigKey) Enabled

func (k ConfigKey) Enabled(tx kv.Tx) (bool, error)

func (ConfigKey) EnsureNotChanged

func (k ConfigKey) EnsureNotChanged(tx kv.RwTx, value bool) (ok, enabled bool, err error)

func (ConfigKey) ForceWrite

func (k ConfigKey) ForceWrite(tx kv.RwTx, enabled bool) error

func (ConfigKey) FromDB

func (k ConfigKey) FromDB(db kv.RoDB) (enabled bool)

func (ConfigKey) WriteOnce

func (k ConfigKey) WriteOnce(tx kv.RwTx, v bool) (bool, error)

Jump to

Keyboard shortcuts

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