Documentation ¶
Index ¶
- Constants
- type DB
- func (db *DB) BatchPut(writes []driver.Write) error
- func (db *DB) Begin() (driver.Tx, error)
- func (db *DB) Close() error
- func (db *DB) Compact() error
- func (db *DB) Delete(key []byte) error
- func (db *DB) Get(key []byte) ([]byte, error)
- func (db *DB) NewIterator() driver.IIterator
- func (db *DB) NewSnapshot() (driver.ISnapshot, error)
- func (db *DB) NewWriteBatch() driver.IWriteBatch
- func (db *DB) Put(key []byte, value []byte) error
- func (db *DB) SyncBatchPut(writes []driver.Write) error
- func (db *DB) SyncDelete(key []byte) error
- func (db *DB) SyncPut(key []byte, value []byte) error
- type Iterator
- type Snapshot
- type Store
- type Tx
- func (t *Tx) BatchPut(writes []driver.Write) error
- func (t *Tx) Commit() error
- func (t *Tx) Delete(key []byte) error
- func (t *Tx) Get(key []byte) ([]byte, error)
- func (t *Tx) NewIterator() driver.IIterator
- func (t *Tx) NewWriteBatch() driver.IWriteBatch
- func (t *Tx) Put(key []byte, value []byte) error
- func (t *Tx) Rollback() error
- func (t *Tx) SyncBatchPut(writes []driver.Write) error
Constants ¶
View Source
const DBName = "boltdb"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct {
// contains filtered or unexported fields
}
func (*DB) NewIterator ¶
func (*DB) NewWriteBatch ¶
func (db *DB) NewWriteBatch() driver.IWriteBatch
func (*DB) SyncDelete ¶
type Snapshot ¶
type Snapshot struct {
// contains filtered or unexported fields
}
func (*Snapshot) NewIterator ¶
type Tx ¶
type Tx struct {
// contains filtered or unexported fields
}
func (*Tx) NewIterator ¶
func (*Tx) NewWriteBatch ¶
func (t *Tx) NewWriteBatch() driver.IWriteBatch
Click to show internal directories.
Click to hide internal directories.