package
1.10.11
Repository: https://github.com/dioneprotocol/odysseygo.git
Documentation: pkg.go.dev

# 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
No description provided by the author
No description provided by the author

# Functions

No description provided by the author
AtomicClearPrefix deletes from [deleterDB] all keys in [readerDB] that have the given [prefix].
BenchmarkBatchDelete measures the time it takes to batch delete.
BenchmarkBatchPut measures the time it takes to batch put.
BenchmarkBatchWrite measures the time it takes to batch write.
BenchmarkDelete measures the time it takes to delete a (k, v) from a database.
BenchmarkGet measures the time it takes to get an operation from a database.
BenchmarkParallelDelete measures the time it takes to delete a (k, v) from the db.
BenchmarkParallelGet measures the time it takes to read in parallel.
BenchmarkParallelPut measures the time it takes to write to the db in parallel.
BenchmarkPut measures the time it takes to write an operation to a database.
Remove all key-value pairs from [db].
Removes all keys with the given [prefix] from [db].
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
No description provided by the author
No description provided by the author
NewMockBatch creates a new mock instance.
NewMockIterator creates a new mock instance.
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
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
Writes size data into the db in order to setup reads in subsequent tests.
No description provided by the author
No description provided by the author
No description provided by the author
TestBatchDelete tests to make sure that batched deletes work as expected.
TestBatchInner tests to make sure that inner can be used to write to the database.
TestBatchLargeSize tests to make sure that the batch can support a large amount of entries.
TestBatchPut tests to make sure that batched writes work as expected.
TestBatchReplay tests to make sure that batches will correctly replay their contents.
TestBatchReplayPropagateError tests to make sure that batches will correctly propagate any returned error during Replay.
TestBatchReset tests to make sure that a batch drops un-written operations when it is reset.
TestBatchReuse tests to make sure that a batch can be reused once it is reset.
TestBatchRewrite tests to make sure that write can be called multiple times on a batch and the values will be updated correctly.
No description provided by the author
No description provided by the author
TestCompactNoPanic tests to make sure compact never panics.
No description provided by the author
No description provided by the author
TestIterator tests to make sure the database iterates over the database contents lexicographically.
TestIteratorClosed tests to make sure that an iterator that was created with a closed database will report a closed error correctly.
TestIteratorError tests to make sure that an iterator on a database will report itself as being exhausted and return [ErrClosed] to indicate that the iteration was not successful.
TestIteratorErrorAfterRelease tests to make sure that an iterator that was released still reports the error correctly.
TestIteratorMemorySafety tests to make sure that keys can values are able to be modified from the returned iterator.
TestIteratorPrefix tests to make sure the iterator can be configured to skip keys missing the provided prefix.
TestIteratorSnapshot tests to make sure the database iterates over a snapshot of the database at the time of the iterator creation.
TestIteratorStart tests to make sure the the iterator can be configured to start mid way through the database.
TestIteratorStartPrefix tests to make sure that the iterator can start mid way through the database while skipping a prefix.
No description provided by the author
No description provided by the author
TestMemorySafetyDatabase ensures it is safe to modify a key after passing it to Batch.Put.
TestMemorySafetyDatabase ensures it is safe to modify a key after passing it to Database.Put and Database.Get.
No description provided by the author
No description provided by the author
No description provided by the author
TestNewBatchClosed tests to make sure that calling NewBatch on a closed database returns a batch that errors correctly.
No description provided by the author
No description provided by the author
TestSimpleKeyValue tests to make sure that simple Put + Get + Delete + Has calls return the expected values.
TestSimpleKeyValueClosed tests to make sure that Put + Get + Delete + Has calls return the correct error when the database has been closed.

# Constants

No description provided by the author
bytes.
No description provided by the author
No description provided by the author
If, when a batch is reset, the cap(batch)/len(batch) > MaxExcessCapacityFactor, the underlying array's capacity will be reduced by a factor of capacityReductionFactor.
bytes.

# Variables

Benchmarks is a list of all database benchmarks.
BenchmarkSizes to use with each benchmark.
common errors.
common errors.
Tests is a list of all database tests.

# Structs

No description provided by the author
No description provided by the author
IteratorError does nothing and returns the provided error.
MockBatch is a mock of Batch interface.
MockBatchMockRecorder is the mock recorder for MockBatch.
MockIterator is a mock of Iterator interface.
MockIteratorMockRecorder is the mock recorder for MockIterator.

# Interfaces

Batch is a write-only database that commits changes to its host database when Write is called.
Batcher wraps the NewBatch method of a backing data store.
Compacter wraps the Compact method of a backing data store.
Database contains all the methods required to allow handling different key-value data stores backing the database.
Iteratee wraps the NewIterator methods of a backing data store.
Iterator iterates over a database's key/value pairs.
KeyValueDeleter wraps the Delete method of a backing data store.
KeyValueReader wraps the Has and Get method of a backing data store.
KeyValueReaderWriter allows read/write acccess to a backing data store.
KeyValueReaderWriterDeleter allows read/write/delete access to a backing data store.
KeyValueWriter wraps the Put method of a backing data store.
KeyValueWriterDeleter allows write/delete acccess to a backing data store.