package
10.9.0+incompatible
Repository: https://github.com/status-im/status-go.git
Documentation: pkg.go.dev

# Functions

Create returns status pointer to leveldb.DB.
Key creates a DB key for a specified service with specified data.
LoadTopicHistoryFromKey unmarshalls key into topic and duration and loads value of topic history from given database.
NewDBNamespace returns instance that ensures isolated operations.
NewHistoryStore returns HistoryStore instance.
NewLevelDBStorage creates new LevelDBStorage instance.
NewMemoryDB returns leveldb with memory backend prefixed with a bucket.
NewMemoryDBNamespace wraps in memory leveldb with provided bucket.
NewMemoryLevelDBStorage returns LevelDBStorage instance with in memory leveldb backend.
Open opens an existing leveldb database.

# Constants

DeduplicatorCache is used for the db entries used for messages deduplication cache.
HistoryRequestBucket isolated bucket for storing list of pending requests.
MailserversCache is a list of mail servers provided by users.
PeersCache is used for the db entries used for peers DB.
TopicHistoryBucket isolated bucket for storing history metadata.

# Variables

ErrEmptyKey returned if key is not expected to be empty.

# Structs

HistoryRequest is kept in the database while request is in the progress.
HistoryStore provides utility methods for quering history and requests store.
LevelDBNamespace database where all operations will be prefixed with a certain bucket.
LevelDBStorage wrapper around leveldb.DB.
LevelDBTx doesn't provide any read isolation.
NamespaceIterator wraps leveldb iterator, works mostly the same way.
TopicHistory stores necessary information.

# Interfaces

CommitStorage allows to write all tx/batched values atomically.
DB is a common interface for DB operations.
Storage is an interface for common db operations.
TransactionalStorage adds transaction features on top of regular storage.

# Type aliases

TopicHistoryKey defines bytes that are used as unique key for TopicHistory.