Versions in this module Expand all Collapse all v0 v0.1.3 Jun 4, 2023 Changes in this version + var ErrNoEntity = errors.New("no such entity") + type BundleEngine interface + NewStorage func(bundle *pathbuilder.Bundle) (BundleStorage, error) + func NewBundleEngine(path string) BundleEngine + type BundleStorage interface + Add func(uri wisski.URI, path []wisski.URI, triples []wisski.Triple) error + AddChild func(parent wisski.URI, bundle string, child wisski.URI) error + AddFieldValue func(uri wisski.URI, field string, value any, path []wisski.URI, ...) error + Count func() (int64, error) + Finalize func() error + Get func(parentPathIndex int) iterator.Iterator[URIWithParent] + Load func(uri wisski.URI) (wisski.Entity, error) + RegisterChildStorage func(bundle string, storage BundleStorage) error + type Disk struct + DB *leveldb.DB + func (ds *Disk) Add(uri wisski.URI, path []wisski.URI, triples []wisski.Triple) error + func (ds *Disk) AddChild(parent wisski.URI, bundle string, child wisski.URI) error + func (ds *Disk) AddFieldValue(uri wisski.URI, field string, value any, path []wisski.URI, ...) error + func (ds *Disk) Close() error + func (ds *Disk) Count() (int64, error) + func (ds *Disk) Finalize() error + func (ds *Disk) Get(parentPathIndex int) iterator.Iterator[URIWithParent] + func (ds *Disk) Load(uri wisski.URI) (entity wisski.Entity, err error) + func (ds *Disk) RegisterChildStorage(bundle string, storage BundleStorage) error + type DiskEngine struct + Path string + func (de DiskEngine) NewStorage(bundle *pathbuilder.Bundle) (BundleStorage, error) + type Memory struct + Entities []wisski.Entity + func (bs *Memory) Add(uri wisski.URI, path []wisski.URI, triples []wisski.Triple) error + func (bs *Memory) AddChild(parent wisski.URI, bundle string, child wisski.URI) error + func (bs *Memory) AddFieldValue(uri wisski.URI, field string, value any, path []wisski.URI, ...) error + func (bs *Memory) Close() error + func (bs *Memory) Count() (int64, error) + func (bs *Memory) Finalize() error + func (bs *Memory) Get(parentPathIndex int) iterator.Iterator[URIWithParent] + func (bs *Memory) Load(uri wisski.URI) (entity wisski.Entity, err error) + func (bs *Memory) RegisterChildStorage(bundle string, storage BundleStorage) error + type MemoryEngine struct + func (MemoryEngine) NewStorage(bundle *pathbuilder.Bundle) (BundleStorage, error) + type URIWithParent struct + Parent wisski.URI + URI wisski.URI