# Packages
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Functions
NewInMemTxRevertOpStore is a convenient constructor for creating instances of InMemTxRevertOpStore.
NewRepository returns a new Repository instance.
NewTxState is a convenient constructor for creating instances of TxState.
# Constants
No description provided by the author
ChunkSent is used by the pusher component to notify about successful push of chunk from the node.
ChunkStored is used by the pusher component to notify that the uploader node is the closest node and has stored the chunk.
ChunkSynced is used by the pusher component to notify that the chunk is synced to the network.
No description provided by the author
KeyAscendingOrder indicates a forward iteration based on ordering of keys.
KeyDescendingOrder denotes the backward iteration based on ordering of keys.
No description provided by the author
No description provided by the author
No description provided by the author
QueryItem indicates interest in the whole Item.
QueryItemID indicates interest in the Result.ID.
QueryItemSize indicates interest in the Result.Size.
# Variables
ErrBatchCommitted is returned by Batch.Commit call when a batch has already been committed.
ErrInvalidQuery indicates that the query is not a valid query.
ErrInvalidQuery indicates that the query is not a valid query.
ErrInvalidQuery indicates that the query is not a valid query.
No description provided by the author
No description provided by the author
ErrInvalidQuery indicates that the query is not a valid query.
ErrTxDone is returned by any operation that is performed on a transaction that has already been committed or rolled back.
# Structs
Descriptor holds information required for Pull syncing.
InMemTxRevertOpStore is an in-memory implementation of TxRevertOpStore.
NoOpTxRevertOpStore is a no-op implementation of TxRevertOpStore.
Query denotes the iteration attributes.
Result represents the item returned by the read operation, which returns the item as the result.
TxChunkStoreBase implements the ChunkStore interface where the operations are guarded by a transaction.
TxRevertOp represents a reverse operation.
TxState is a mix-in for Tx.
TxStoreBase implements the Store interface where the operations are guarded by a transaction.
# Interfaces
Batch provides set of operations that are batched.
BatchedStore is a store that supports batching of Writer method calls.
Batcher specifies a constructor for creating new batches.
ChunkGetterDeleter is a storage that provides only read and delete operations for chunks.
No description provided by the author
Cloner makes a deep copy of the Item.
Deleter is the interface that wraps the basic Delete method.
Getter is the interface that wraps the basic Get method.
Hasser is the interface that wraps the basic Has method.
Item represents an item which can be used in the Store.
Key represents the item identifiers.
Marshaler is the interface implemented by types that can marshal themselves into valid Item.
No description provided by the author
PushReporter is used to report chunk state.
No description provided by the author
Putter is the interface that wraps the basic Put method.
Reader groups methods that read from the store.
No description provided by the author
Recoverer allows store to recover from a failure when the transaction was not committed or rolled back.
Repository is a collection of stores that provides a unified interface to access them.
No description provided by the author
StateStorer is a storage interface for storing and retrieving key/value pairs.
StateStorerCleaner is the interface for cleaning the store.
Store contains the methods required for the Data Abstraction Layer.
Tx represents an in-progress Store transaction.
TxChunkStore represents a Tx ChunkStore where all operations are completed in a transaction.
TxRevertOpStore represents a store for TxRevertOp.
TxStore represents a Tx Store where all operations are completed in a transaction.
Unmarshaler is the interface implemented by types that can unmarshal a JSON description of themselves.
Writer groups methods that change the state of the store.
# Type aliases
No description provided by the author
No description provided by the author
Filter subtracts entries from the iteration.
No description provided by the author
No description provided by the author
IterateFn iterates through the Items of the store in the Key.Namespace.
Order represents order of the iteration.
PutterFunc type is an adapter to allow the use of ChunkStore as Putter interface.
QueryItemProperty tells the Query which Item property should be loaded from the store to the result.
StateIterFunc is used when iterating through StateStorer key/value pairs.
TxOpCode represents code for tx operations.
TxRevertFn represents a function that can be invoked to reverse the operation that was performed by the corresponding TxOpCode.