Documentation
¶
Index ¶
- Variables
- func MutexWrap(d ds.Datastore) *dssync.MutexDatastore
- func NewBlockstore(b Batching, opts ...blockstore.Option) blockstore.Blockstore
- func NewIdStore(bs blockstore.Blockstore) blockstore.Blockstore
- func NewKey(s string) ds.Key
- func WriteThrough(enabled bool) blockstore.Option
- type Batch
- type Batching
- type Datastore
- type DsEntry
- type Filter
- type Key
- type OrderByKey
- type OrderByKeyDescending
- type Query
- type Result
- type Results
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = ds.ErrNotFound
Functions ¶
func NewBlockstore ¶ added in v0.5.162
func NewBlockstore(b Batching, opts ...blockstore.Option) blockstore.Blockstore
func NewIdStore ¶ added in v0.6.316
func NewIdStore(bs blockstore.Blockstore) blockstore.Blockstore
NewIdStore wraps a blockstore so it transparently synthesises "identity" blocks — blocks whose payload is encoded directly in the CID. go-ds-crdt occasionally produces inline blocks for tiny deltas; without this wrapper, bitswap cannot satisfy WANTs for such CIDs and replication can stall in small clusters.
func WriteThrough ¶ added in v0.6.316
func WriteThrough(enabled bool) blockstore.Option
WriteThrough configures a blockstore to skip the redundant Has() check before every Put. go-ds-crdt writes blocks once and never overwrites them, so the check is pure overhead — same reason ipfs-lite enables this option for CRDT-backed deployments.
Types ¶
type OrderByKey ¶
type OrderByKey = dsq.OrderByKey
type OrderByKeyDescending ¶
type OrderByKeyDescending = dsq.OrderByKeyDescending
Click to show internal directories.
Click to hide internal directories.