package
0.2501.0
Repository: https://github.com/oasisprotocol/oasis-core.git
Documentation: pkg.go.dev

# Functions

NewClient creates a new gRPC storage client.
No description provided by the author
No description provided by the author
RegisterService registers a new sentry service with the given gRPC server.

# Constants

ModuleName is the storage module name.
RootTypeInvalid is an invalid/uninitialized root type.
RootTypeIO is the type for IO storage roots.
RootTypeMax is the number of different root types.
RootTypeState is the type for state storage roots.
WriteLogIteratorChunkSize defines the chunk size of write log entries for the GetDiff method.

# Variables

ErrAlreadyFinalized indicates that the given version has already been finalized.
ErrCantProve is the error returned when the backend is incapable of generating proofs (unsupported, no key, etc).
ErrExpectedRootMismatch is the error returned when the expected root does not match the computed root.
ErrLimitReached means that a configured limit has been reached.
ErrNodeNotFound indicates that a node with the specified hash couldn't be found in the database.
ErrNoRoots is the error returned when the generated receipt would not contain any roots.
ErrNotFinalized indicates that the operation requires a version to be finalized but the version is not yet finalized.
ErrPreviousVersionMismatch indicates that the version given for the old root does not match the previous version.
ErrReadOnly indicates that the storage backend is read-only.
ErrRootMustFollowOld indicates that the passed new root does not follow old root.
ErrRootNotFound indicates that the given root cannot be found.
ErrUnsupported is the error returned when the called method is not supported by the given backend.
ErrVersionNotFound indicates that the given version cannot be found.
ErrVersionWentBackwards indicates that the new version is earlier than an already inserted version.
ErrWriteLogNotFound indicates that a write log for the specified storage hashes couldn't be found.
MethodGetCheckpointChunk is the GetCheckpointChunk method.
MethodGetCheckpoints is the GetCheckpoints method.
MethodGetDiff is the GetDiff method.
MethodSyncGet is the SyncGet method.
MethodSyncGetPrefixes is the SyncGetPrefixes method.
MethodSyncIterate is the SyncIterate method.
ServiceName is the gRPC service name.

# Structs

ApplyRequest is an Apply request.
Client is a gRPC storage client.
Config is the storage backend configuration.
GetDiffRequest is a GetDiff request.
RootCache is a LRU based tree cache.
SyncChunk is a chunk of write log entries sent during GetDiff operation.
SyncOptions are the sync options.

# Interfaces

Backend is a storage backend implementation.
ClientBackend is a storage client backend implementation.
LocalBackend is a storage implementation with a local backing store.
WrappedLocalBackend is an interface implemented by storage backends that wrap a local storage backend in order to support unwrapping.

# Type aliases

Depth determines the node's (bit) depth in the tree.
GetPrefixesRequest is a request for the SyncGetPrefixes operation.
GetRequest is a request for the SyncGet operation.
InternalNode is an internal node with two children.
IterateRequest is a request for the SyncIterate operation.
Key is a node's key spelled out from the root to the node.
LeafNode is a leaf node containing a key/value pair.
LogEntry is a write log entry.
Node is either an InternalNode or a LeafNode.
NodeDB is a node database.
Pointer is a pointer to another node.
Proof is a Merkle proof for a subtree.
ProofResponse is a response for requests that produce proofs.
Root is a storage root.
RootType is a storage root type.
TreeID identifies a specific tree and a position within that tree.
WriteLog is a write log.
WriteLogIterator iterates over write log entries.