Documentation ¶
Index ¶
- type Batch
- type Iterator
- func (i *Iterator) Close() error
- func (i *Iterator) Err() error
- func (i *Iterator) First()
- func (i *Iterator) Key() []byte
- func (i *Iterator) Last()
- func (i *Iterator) Next() bool
- func (i *Iterator) Prev() bool
- func (i *Iterator) Seek(seek []byte)
- func (i *Iterator) Valid() bool
- func (i *Iterator) Value() []byte
- type Option
- type Storage
- func (s *Storage) Batch() (storage.Batch, error)
- func (s *Storage) Close() error
- func (s *Storage) Del(key []byte) error
- func (s *Storage) GC() error
- func (s *Storage) Get(key []byte) ([]byte, error)
- func (s *Storage) MGet(keys ...[]byte) ([][]byte, error)
- func (s *Storage) PrefixIterator(prefix []byte) (storage.Iterator, error)
- func (s *Storage) Put(key, val []byte) error
- func (s *Storage) RangeIterator(start, end []byte) (storage.Iterator, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Iterator ¶
type Iterator struct {
// contains filtered or unexported fields
}
Iterator common iterator
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
Storage storage implementation
func (*Storage) PrefixIterator ¶
PrefixIterator return a iterator with prefix
Click to show internal directories.
Click to hide internal directories.