Documentation ¶
Index ¶
- Variables
- type Cache
- type LevelDB
- func (db *LevelDB) Close() error
- func (db *LevelDB) Compact(start []byte, limit []byte) error
- func (db *LevelDB) Delete(key []byte) error
- func (db *LevelDB) Get(key []byte) ([]byte, error)
- func (db *LevelDB) Has(key []byte) (bool, error)
- func (db *LevelDB) Put(key []byte, value []byte) error
- func (db *LevelDB) QueryPrefixKeyList(prefix string) ([]string, error)
- func (db *LevelDB) QueryPrefixKeyListByHeigh(prefix string, blockheight uint32) ([]string, error)
- type Reader
- type Writer
Constants ¶
This section is empty.
Variables ¶
View Source
var (
NotFound = leveldb.ErrNotFound
)
Functions ¶
This section is empty.
Types ¶
type LevelDB ¶
type LevelDB struct {
// contains filtered or unexported fields
}
func (*LevelDB) QueryPrefixKeyList ¶
type Reader ¶
type Reader interface { // Has returns true if the given key exists in the key-value data store. Has(key []byte) (bool, error) // Get fetch the given key if it's present in the key-value data store. Get(key []byte) ([]byte, error) // QueryPrefixKeyList queries the collection of all keys that start with // prefix but do not contain prefix QueryPrefixKeyList(prefix string) ([]string, error) // QueryPrefixKeyList queries a collection of all keys that start with a prefix // but do not contain a prefix and have a value before the block height QueryPrefixKeyListByHeigh(prefix string, blockheight uint32) ([]string, error) }
Click to show internal directories.
Click to hide internal directories.