kvcfg

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: Apache-2.0 Imports: 2 Imported by: 15

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