Documentation ¶
Index ¶
- Constants
- type Iterator
- type Storage
- func (storage *Storage) Close() error
- func (storage *Storage) CommitWriteBatch(batch *StorageWriteBatch) error
- func (storage *Storage) Del(key string) error
- func (storage *Storage) DelData(key []byte) error
- func (storage *Storage) For(fn func(k []byte, v []byte))
- func (storage *Storage) ForIndex(fn func(n int, k []byte, v []byte))
- func (storage *Storage) ForIndexStar(start int, fn func(n int, k []byte, v []byte))
- func (storage *Storage) Foreach(fn func(k string, v []byte) error) error
- func (storage *Storage) ForeachData(fn func(k []byte, v []byte) error) error
- func (storage *Storage) Get(key string) ([]byte, error)
- func (storage *Storage) GetData(key []byte) (val []byte, err error)
- func (storage *Storage) GetVersion() uint32
- func (storage *Storage) NewIterator() Iterator
- func (storage *Storage) NewWriteBatch() *StorageWriteBatch
- func (storage *Storage) PrefixForeach(prefix string, fn func(k string, v []byte) error) error
- func (storage *Storage) PrefixForeachData(prefix []byte, fn func(k []byte, v []byte) error) error
- func (storage *Storage) Set(key string, val []byte) error
- func (storage *Storage) SetData(key []byte, val []byte) error
- type StorageWriteBatch
Constants ¶
View Source
const ( DEBUG loggingLevel = iota INFO WARNING ERROR )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) CommitWriteBatch ¶
func (storage *Storage) CommitWriteBatch(batch *StorageWriteBatch) error
func (*Storage) ForIndexStar ¶
func (*Storage) ForeachData ¶
func (*Storage) GetVersion ¶
func (*Storage) NewIterator ¶
func (*Storage) NewWriteBatch ¶
func (storage *Storage) NewWriteBatch() *StorageWriteBatch
func (*Storage) PrefixForeach ¶
func (*Storage) PrefixForeachData ¶
type StorageWriteBatch ¶
type StorageWriteBatch struct {
// contains filtered or unexported fields
}
func (*StorageWriteBatch) Clear ¶
func (b *StorageWriteBatch) Clear()
func (*StorageWriteBatch) Count ¶
func (b *StorageWriteBatch) Count() int
func (*StorageWriteBatch) Delete ¶
func (b *StorageWriteBatch) Delete(key []byte) error
func (*StorageWriteBatch) Destroy ¶
func (b *StorageWriteBatch) Destroy()
func (*StorageWriteBatch) Put ¶
func (b *StorageWriteBatch) Put(key, value []byte) error
Click to show internal directories.
Click to hide internal directories.