Documentation
¶
Index ¶
- Constants
- type IterKeyVal
- type Store
- func (s *Store) Add(key []byte, value []byte) error
- func (s *Store) Clean() error
- func (s *Store) Close() error
- func (s *Store) Delete(key []byte) error
- func (s *Store) Get(key []byte) ([]byte, error)
- func (s *Store) HasKey(key []byte) bool
- func (s *Store) Iter() <-chan IterKeyVal
- func (s *Store) Update(key []byte, value []byte) error
Constants ¶
View Source
const (
//FlagRecordsCompressed Records are compressed
FlagRecordsCompressed = 0x1
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IterKeyVal ¶
IterKeyVal holds key values for the iter func
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store basic store
func NewStoreWithBackend ¶
NewStoreWithBackend creates or opens a store from a given backend (e.g. a file on disk)
Click to show internal directories.
Click to hide internal directories.