localstorage

package
v0.2011.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package localstorage implements untrusted local storage that is used by runtimes to store per-node key/value pairs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocalStorage

type LocalStorage interface {
	// Get retrieves a previously stored value under the given key.
	Get(key []byte) ([]byte, error)

	// Set sets a key to a specific value.
	Set(key, value []byte) error

	// Stop stops local storage.
	Stop()
}

LocalStorage is the untrusted local storage interface.

func New

func New(dataDir, fn string, runtimeID common.Namespace) (LocalStorage, error)

New creates new untrusted local storage.

Jump to

Keyboard shortcuts

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