Versions in this module Expand all Collapse all v0 v0.0.3 Dec 16, 2024 v0.0.2 Aug 21, 2021 Changes in this version + var ObjectKeySuffix = ".dsobject" + func NewDatastore(path string) (ds.Datastore, error) + type Datastore struct + func (d *Datastore) Batch() (ds.Batch, error) + func (d *Datastore) Close() error + func (d *Datastore) Delete(key ds.Key) (err error) + func (d *Datastore) DiskUsage() (uint64, error) + func (d *Datastore) Get(key ds.Key) (value []byte, err error) + func (d *Datastore) GetSize(key ds.Key) (size int, err error) + func (d *Datastore) Has(key ds.Key) (exists bool, err error) + func (d *Datastore) KeyFilename(key ds.Key) string + func (d *Datastore) Put(key ds.Key, value []byte) (err error) + func (d *Datastore) Query(q query.Query) (query.Results, error) + func (d *Datastore) Sync(prefix ds.Key) error