Documentation ¶
Index ¶
- Constants
- type SlotKeyEntry
- type SlotKeyRepo
- func (s *SlotKeyRepo) AllKeysChan(ctx context.Context, slot uint16, seekSlotKey string) (<-chan *SlotKeyEntry, error)
- func (s *SlotKeyRepo) Get(slot uint16, key string) (value string, err error)
- func (s *SlotKeyRepo) Has(slot uint16, key string) (bool, error)
- func (s *SlotKeyRepo) Remove(slot uint16, key string) error
- func (s *SlotKeyRepo) Set(slot uint16, key string, value string) error
Constants ¶
View Source
const SlotPrefix = "slot/"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SlotKeyEntry ¶
type SlotKeyRepo ¶
type SlotKeyRepo struct {
// contains filtered or unexported fields
}
SlotKeyRepo saves information about the slot and cid key mapping.
func NewSlotKeyRepo ¶
func NewSlotKeyRepo(db objmetadb.ObjStoreMetaDBAPI) *SlotKeyRepo
func (*SlotKeyRepo) AllKeysChan ¶
func (s *SlotKeyRepo) AllKeysChan(ctx context.Context, slot uint16, seekSlotKey string) (<-chan *SlotKeyEntry, error)
Click to show internal directories.
Click to hide internal directories.