Documentation ¶
Index ¶
- func IsFormatVersionMismatch(err error) bool
- type Conf
- type DB
- func (dbInst *DB) Close()
- func (dbInst *DB) Delete(key []byte, sync bool) error
- func (dbInst *DB) Get(key []byte) ([]byte, error)
- func (dbInst *DB) GetIterator(startKey []byte, endKey []byte) iterator.Iterator
- func (dbInst *DB) IsEmpty() (bool, error)
- func (dbInst *DB) Open()
- func (dbInst *DB) Put(key []byte, value []byte, sync bool) error
- func (dbInst *DB) WriteBatch(batch *leveldb.Batch, sync bool) error
- type DBHandle
- func (h *DBHandle) Delete(key []byte, sync bool) error
- func (h *DBHandle) Get(key []byte) ([]byte, error)
- func (h *DBHandle) GetIterator(startKey []byte, endKey []byte) *Iterator
- func (h *DBHandle) Put(key []byte, value []byte, sync bool) error
- func (h *DBHandle) WriteBatch(batch *UpdateBatch, sync bool) error
- type ErrFormatVersionMismatch
- type FileLock
- type Iterator
- type Provider
- type UpdateBatch
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsFormatVersionMismatch ¶
Types ¶
type DBHandle ¶
type DBHandle struct {
// contains filtered or unexported fields
}
func (*DBHandle) GetIterator ¶
func (*DBHandle) WriteBatch ¶
func (h *DBHandle) WriteBatch(batch *UpdateBatch, sync bool) error
type ErrFormatVersionMismatch ¶
type ErrFormatVersionMismatch struct { DBPath string ExpectedFormatVersion string DataFormatVersion string }
func (*ErrFormatVersionMismatch) Error ¶
func (e *ErrFormatVersionMismatch) Error() string
type FileLock ¶
type FileLock struct {
// contains filtered or unexported fields
}
func NewFileLock ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
func NewProvider ¶
func (*Provider) GetDBHandle ¶
func (*Provider) GetDataFormat ¶
type UpdateBatch ¶
func NewUpdateBatch ¶
func NewUpdateBatch() *UpdateBatch
func (*UpdateBatch) Delete ¶
func (batch *UpdateBatch) Delete(key []byte)
func (*UpdateBatch) Len ¶
func (batch *UpdateBatch) Len() int
func (*UpdateBatch) Put ¶
func (batch *UpdateBatch) Put(key []byte, value []byte)
Click to show internal directories.
Click to hide internal directories.