common

package
v0.6.1-alpha.4-prerelease Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	ObjectTypeDBSchemaVersion    = byte(iota) + 'A'
	ObjectTypeChainRecord        // deprecated
	ObjectTypeCommitteeRecord    // unused
	ObjectTypeDistributedKeyData // unused
	ObjectTypeState
	ObjectTypeTrie
	ObjectTypeBlock
	ObjectTypeNodeIdentity   // deprecated
	ObjectTypeBlobCache      // unused
	ObjectTypeBlobCacheTTL   // unused
	ObjectTypeTrustedPeer    // deprecated
	ObjectTypeConsensusState // deprecated

	StorePrefixHealth byte = 255
)

Variables

View Source
var ErrOperationAborted = errors.New("operation was aborted")

ErrOperationAborted is returned when the operation was aborted e.g. by a shutdown signal.

Functions

func MakeKey

func MakeKey(objType byte, keyBytes ...[]byte) []byte

MakeKey makes key within the partition. It consists of one byte for object type and arbitrary byte fragments concatenated together

Types

This section is empty.

Jump to

Keyboard shortcuts

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