Documentation ¶
Index ¶
- func New(path string) (store kvs.Store, err error)
- type Batch
- type Store
- func (s *Store) Close() (err error)
- func (s *Store) Delete(path ...string) (err error)
- func (s *Store) DeleteTree(path ...string) (err error)
- func (s *Store) Get(path ...string) (value []byte, err error)
- func (s *Store) GetTree(path ...string) (entries []kvs.Entry, err error)
- func (s *Store) Has(path ...string) (exists bool, err error)
- func (s *Store) NewBatch() (batch kvs.Batch)
- func (s *Store) Remove() (err error)
- func (s *Store) Set(value []byte, path ...string) (err error)
- func (s *Store) SetWithTTL(value []byte, ttl time.Duration, path ...string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Batch ¶
type Batch struct {
// contains filtered or unexported fields
}
func (*Batch) SetWithTTL ¶
SetWithTTL the value for the given key with a time to live
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store leveldb
func (*Store) DeleteTree ¶
DeleteTree deletes the values for keys under the given prefix
Click to show internal directories.
Click to hide internal directories.