Documentation ¶
Index ¶
- type RefEntry
- type Store
- func (s *Store) Delete(prefix []byte) error
- func (s *Store) Get(prefix []byte) ([]byte, error)
- func (s *Store) GetWithItem(prefix []byte) (*badger.Item, []byte, error)
- func (s *Store) NewIterator(opts badger.IteratorOptions) badgerutils.Iterator[[]byte]
- func (s *Store) Prefix() []byte
- func (s *Store) Set(key []byte, e RefEntry) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RefEntry ¶
type RefEntry struct { Prefix []byte OptionalValue []byte // Value stored as the value of index record that can be used in index only queries TTL time.Duration }
RefEntry is an index that is generated by an Indexer
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
Store is a store that works with serialized values and also keeps track of multiple secondary indexes.
func (*Store) GetWithItem ¶
GetWithItem gets a Ref given its whole key and also returns the *badger.Item
func (*Store) NewIterator ¶
func (s *Store) NewIterator(opts badger.IteratorOptions) badgerutils.Iterator[[]byte]
NewIterator creates a new reference iterator
Click to show internal directories.
Click to hide internal directories.