datastore

package
v0.7.183 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 31, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = ds.ErrNotFound

Functions

func MutexWrap added in v0.5.162

func MutexWrap(d ds.Datastore) *dssync.MutexDatastore

func NewBlockstore added in v0.5.162

func NewBlockstore(b Batching, opts ...blockstore.Option) blockstore.Blockstore

func NewIdStore added in v0.6.316

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 NewKey

func NewKey(s string) ds.Key

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 Batch

type Batch = ds.Batch

type Batching

type Batching = ds.Batching

type Datastore

type Datastore = ds.Datastore

type DsEntry

type DsEntry = dsq.Entry

type Filter

type Filter = dsq.Filter

type Key

type Key = ds.Key

type OrderByKey

type OrderByKey = dsq.OrderByKey

type OrderByKeyDescending

type OrderByKeyDescending = dsq.OrderByKeyDescending

type Query

type Query = dsq.Query

type Result

type Result = dsq.Result

type Results

type Results = dsq.Results

func NaiveQueryApply

func NaiveQueryApply(q Query, qr Results) Results

func ResultsReplaceQuery

func ResultsReplaceQuery(r Results, q Query) Results

func ResultsWithContext

func ResultsWithContext(q Query, proc func(context.Context, chan<- Result)) Results

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL