Documentation ¶
Index ¶
- Constants
- type BatchWrapper
- type DBOption
- type DBWrapper
- func (dbw *DBWrapper) Close()
- func (dbw *DBWrapper) CompactRange(begin, end []byte) error
- func (dbw *DBWrapper) Erase(key []byte, sync bool) error
- func (dbw *DBWrapper) EstimateSize(begin, end []byte) uint64
- func (dbw *DBWrapper) Exists(key []byte) bool
- func (dbw *DBWrapper) GetObfuscateKey() []byte
- func (dbw *DBWrapper) IsEmpty() bool
- func (dbw *DBWrapper) Iterator(slice *util.Range) *IterWrapper
- func (dbw *DBWrapper) Prefix(prefix []byte) *IterWrapper
- func (dbw *DBWrapper) Read(key []byte) ([]byte, error)
- func (dbw *DBWrapper) Reset()
- func (dbw *DBWrapper) Sync() error
- func (dbw *DBWrapper) Write(key, val []byte, sync bool) error
- func (dbw *DBWrapper) WriteBatch(bw *BatchWrapper, sync bool) error
- type IterWrapper
- func (iw *IterWrapper) Close()
- func (iw *IterWrapper) GetKey() []byte
- func (iw *IterWrapper) GetKeySize() int
- func (iw *IterWrapper) GetVal() []byte
- func (iw *IterWrapper) GetValSize() int
- func (iw *IterWrapper) Next()
- func (iw *IterWrapper) Seek(key []byte)
- func (iw *IterWrapper) SeekToFirst()
- func (iw *IterWrapper) Valid() bool
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BatchWrapper ¶
type BatchWrapper struct {
// contains filtered or unexported fields
}
func NewBatchWrapper ¶
func NewBatchWrapper(parent *DBWrapper) *BatchWrapper
func (*BatchWrapper) Clear ¶
func (bw *BatchWrapper) Clear()
func (*BatchWrapper) Erase ¶
func (bw *BatchWrapper) Erase(key []byte)
func (*BatchWrapper) SizeEstimate ¶
func (bw *BatchWrapper) SizeEstimate() int
func (*BatchWrapper) Write ¶
func (bw *BatchWrapper) Write(key, val []byte)
type DBWrapper ¶
type DBWrapper struct {
// contains filtered or unexported fields
}
func NewDBWrapper ¶
func (*DBWrapper) CompactRange ¶
func (*DBWrapper) EstimateSize ¶
func (*DBWrapper) GetObfuscateKey ¶
func (*DBWrapper) Prefix ¶
func (dbw *DBWrapper) Prefix(prefix []byte) *IterWrapper
func (*DBWrapper) WriteBatch ¶
func (dbw *DBWrapper) WriteBatch(bw *BatchWrapper, sync bool) error
type IterWrapper ¶
type IterWrapper struct {
// contains filtered or unexported fields
}
func NewIterWrapper ¶
func NewIterWrapper(parent *DBWrapper, iter iterator.Iterator) *IterWrapper
func (*IterWrapper) Close ¶
func (iw *IterWrapper) Close()
func (*IterWrapper) GetKey ¶
func (iw *IterWrapper) GetKey() []byte
func (*IterWrapper) GetKeySize ¶
func (iw *IterWrapper) GetKeySize() int
func (*IterWrapper) GetVal ¶
func (iw *IterWrapper) GetVal() []byte
func (*IterWrapper) GetValSize ¶
func (iw *IterWrapper) GetValSize() int
func (*IterWrapper) Next ¶
func (iw *IterWrapper) Next()
func (*IterWrapper) Seek ¶
func (iw *IterWrapper) Seek(key []byte)
func (*IterWrapper) SeekToFirst ¶
func (iw *IterWrapper) SeekToFirst()
func (*IterWrapper) Valid ¶
func (iw *IterWrapper) Valid() bool
Click to show internal directories.
Click to hide internal directories.