Documentation ¶
Index ¶
- type Store
- func (s *Store) All(callback func(key, value []byte) error) error
- func (s *Store) ApproximateNumEntries() (int64, error)
- func (s *Store) Close() error
- func (s *Store) Delete(key kstreams.Encoder) ([]byte, error)
- func (s *Store) Flush() error
- func (s *Store) Get(key kstreams.Encoder) ([]byte, error)
- func (s *Store) IsOpen() bool
- func (s *Store) IsPersistent() bool
- func (s *Store) Name() string
- func (s *Store) Put(key, value kstreams.Encoder) error
- func (s *Store) PutAll(kvs ...kstreams.KeyValue) error
- func (s *Store) PutIfAbsent(key, value kstreams.Encoder) error
- func (s *Store) Range(from, to kstreams.Encoder, callback func(key, value []byte) error) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store implements a kstreams.KeyValueStore backed by badger
func (*Store) All ¶
All provides a closure over all keys and MUST NOT return null values.
No ordering guarantees are provided.
func (*Store) ApproximateNumEntries ¶
ApproximateNumEntries returns the approximate count of key value mappings in the store
func (*Store) IsPersistent ¶
IsPersistent indicates if this store is persistent or not
func (*Store) PutIfAbsent ¶
PutIfAbsent updates the values associated with this key unless a value is already associated with the key
Click to show internal directories.
Click to hide internal directories.