Documentation ¶
Index ¶
- Variables
- func TestBatchIndex(t *testing.T, newStore New, newBatch NewBatch, test index.TestIndex, ...)
- func TestBatchKV(t *testing.T, test storekv.TestKV, newStore New, newBatch NewBatch, ...)
- func TestIndex(t *testing.T, newStore New, test index.TestIndex, wg *pr2.WaitGroup)
- func TestKV(t *testing.T, test storekv.TestKV, newStore New, wg *pr2.WaitGroup)
- func TestMixedIndex(t *testing.T, newStore New, testIndex index.TestIndex, wg *pr2.WaitGroup)
- func TestMixedKV(t *testing.T, newStore New, testKV storekv.TestKV, wg *pr2.WaitGroup)
- type Batch
- func (b *Batch) Abort() error
- func (b *Batch) Commit() (err error)
- func (b *Batch) CostInfo() storekv.CostInfo
- func (b *Batch) IndexFor(id StoreID) (index.Index, error)
- func (b *Batch) KeyDelete(keys ...string) (err error)
- func (b *Batch) KeyExists(key string) (ok bool, err error)
- func (b *Batch) KeyGet(key string, fn func(io.Reader) error) (err error)
- func (b *Batch) KeyIter(prefix string, fn func(key string) error) (err error)
- func (b *Batch) KeyPut(key string, r io.Reader) (err error)
- func (b *Batch) Name() string
- func (b *Batch) StoreID() string
- type CacheSize
- type Codec
- type Def
- type Index
- type IndexEntry
- type IndexSaveOption
- type IndexTapEntry
- type Key
- type Logger
- type New
- type NewBatch
- type Prefix
- type Store
- func (s *Store) CostInfo() storekv.CostInfo
- func (s *Store) IndexFor(id StoreID) (index.Index, error)
- func (s *Store) KeyDelete(keys ...string) (err error)
- func (s *Store) KeyExists(key string) (ok bool, err error)
- func (s *Store) KeyGet(key string, fn func(io.Reader) error) (err error)
- func (s *Store) KeyIter(prefix string, fn func(key string) error) (err error)
- func (s *Store) KeyPut(key string, r io.Reader) (err error)
- func (s *Store) Name() string
- func (s *Store) StoreID() string
- type StoreID
- type StoreIndex
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Break = store.Break NewMemFS = vfs.NewMem ErrKeyNotFound = store.ErrKeyNotFound ErrClosed = store.ErrClosed )
View Source
var TestingIndex = testingIndex{}
Functions ¶
func TestBatchIndex ¶
func TestBatchKV ¶
func TestMixedIndex ¶
Types ¶
type Batch ¶
type Batch struct {
// contains filtered or unexported fields
}
type Def ¶
type Def struct{}
type Index ¶
type Index struct {
// contains filtered or unexported fields
}
func (Index) Delete ¶
func (i Index) Delete(entry IndexEntry) (err error)
func (Index) Save ¶
func (i Index) Save(entry IndexEntry, options ...IndexSaveOption) (err error)
type IndexEntry ¶
type IndexSaveOption ¶
type IndexSaveOption = index.SaveOption
type IndexTapEntry ¶
type StoreIndex ¶
type StoreIndex = index.StoreIndex
Click to show internal directories.
Click to hide internal directories.