Documentation
¶
Index ¶
- Constants
- type Database
- func (d *Database) Close() error
- func (d *Database) Compact(start []byte, limit []byte) error
- func (d *Database) Delete(key []byte) error
- func (d *Database) Get(key []byte) ([]byte, error)
- func (d *Database) Has(key []byte) (bool, error)
- func (d *Database) HealthCheck(ctx context.Context) (interface{}, error)
- func (d *Database) NewBatch() database.Batch
- func (d *Database) NewIterator() database.Iterator
- func (d *Database) NewIteratorWithPrefix(prefix []byte) database.Iterator
- func (d *Database) NewIteratorWithStart(start []byte) database.Iterator
- func (d *Database) NewIteratorWithStartAndPrefix(start, prefix []byte) database.Iterator
- func (d *Database) Put(key []byte, value []byte) error
Constants ¶
View Source
const Name = "leveldb"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database struct {
// contains filtered or unexported fields
}
Database is a persistent key-value store using LevelDB.
func (*Database) HealthCheck ¶
HealthCheck implements database.Database.
func (*Database) NewIterator ¶
NewIterator implements database.Database.
func (*Database) NewIteratorWithPrefix ¶
NewIteratorWithPrefix implements database.Database.
func (*Database) NewIteratorWithStart ¶
NewIteratorWithStart implements database.Database.
func (*Database) NewIteratorWithStartAndPrefix ¶
NewIteratorWithStartAndPrefix implements database.Database.
Click to show internal directories.
Click to hide internal directories.