storage

package
v0.0.0-...-9865f5a Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2020 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Package storage implements the storage backend.

Index

Constants

View Source
const (
	// CfgBackend configures the storage backend flag.
	CfgBackend = "storage.backend"

	// CfgLRUSlots configures the LRU apply lock slots.
	CfgLRUSlots = "storage.root_cache.apply_lock_lru_slots"

	// CfgMaxCacheSize configures the maximum in-memory cache size.
	CfgMaxCacheSize = "storage.max_cache_size"
)

Variables

Flags has the configuration flags.

Functions

func New

func New(
	ctx context.Context,
	dataDir string,
	namespace common.Namespace,
	identity *identity.Identity,
	schedulerBackend scheduler.Backend,
	registryBackend registry.Backend,
) (api.Backend, error)

New constructs a new Backend based on the configuration flags.

Types

This section is empty.

Directories

Path Synopsis
Package api implements the storage backend API.
Package api implements the storage backend API.
Package client implements a client for Oasis storage nodes.
Package client implements a client for Oasis storage nodes.
Package database implements a database backed storage backend.
Package database implements a database backed storage backend.
Package mkvs provides a Merklized Key-Value Store (MKVS) implementation.
Package mkvs provides a Merklized Key-Value Store (MKVS) implementation.
checkpoint
Package checkpoint provides methods for creating MKVS checkpoints.
Package checkpoint provides methods for creating MKVS checkpoints.
db
db/api
Package api provides a persistent node database interface for MKVS trees.
Package api provides a persistent node database interface for MKVS trees.
db/badger
Package badger provides a Badger-backed node database.
Package badger provides a Badger-backed node database.
interop
MKVS interoperability test helpers.
MKVS interoperability test helpers.
interop/cmd
Package cmd implements the commands for MKVS interoperability test helpers.
Package cmd implements the commands for MKVS interoperability test helpers.
node
Package node defines MKVS tree nodes.
Package node defines MKVS tree nodes.
syncer
Package syncer provides the read-only sync interface.
Package syncer provides the read-only sync interface.
tests
Package tests contains helpers for testing MKVS trees.
Package tests contains helpers for testing MKVS trees.
Package tests is a collection of storage implementation test cases.
Package tests is a collection of storage implementation test cases.

Jump to

Keyboard shortcuts

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