package
3.0.0+incompatible
Repository: https://github.com/hyperledger/fabric.git
Documentation: pkg.go.dev

# Packages

Code generated by counterfeiter.

# Functions

NewDB wraps a VersionedDB instance.
NewDBProvider constructs an instance of DBProvider.
NewHashedUpdateBatch creates an empty HashedUpdateBatch.
NewPubUpdateBatch creates an empty PubUpdateBatch.
NewPvtUpdateBatch creates an empty PvtUpdateBatch.
NewSnapshotWriter creates a new SnapshotWriter.
NewUpdateBatch creates and empty UpdateBatch.

# Constants

# Variables

# Structs

CouchDBTestEnv implements TestEnv interface for couchdb based storage.
DB uses a single database to maintain both the public and private data.
DBProvider encapsulates other providers such as VersionedDBProvider and BookeepingProvider which are required to create DB for a channel.
HashedCompositeKey encloses Namespace, CollectionName and KeyHash components.
HashedUpdateBatch contains updates for the hashes of the private data.
LevelDBTestEnv implements TestEnv interface for leveldb based storage.
NsBatch contains updates related to one namespace.
PubUpdateBatch contains update for the public data.
PvtdataCompositeKey encloses Namespace, CollectionName and Key components.
PvtKVWrite encloses Key, IsDelete, Value, and Version components.
PvtUpdateBatch contains updates for the private data.
SnapshotReader reads data from a pair of files (a data file and the corresponding metadata file).
SnapshotWriter generates two files, a data file and a metadata file.
StateDBConfig encapsulates the configuration for stateDB on the ledger.
UpdateBatch encapsulates the updates to Public, Private, and Hashed data.

# Interfaces

TestEnv - an interface that a test environment implements.

# Type aliases

PvtdataCompositeKeyMap is a map of PvtdataCompositeKey to VersionedValue.
UpdateMap maintains entries of tuple <Namespace, UpdatesForNamespace>.