Versions in this module Expand all Collapse all v0 v0.0.2 Dec 15, 2025 Changes in this version + func Modify(ctx context.Context, svc blobcache.Service, volh blobcache.Handle, ...) error + func ModifyTx(ctx context.Context, svc blobcache.Service, volh blobcache.Handle, ...) error + func OpenURL(ctx context.Context, bc blobcache.Service, u blobcache.URL) (*blobcache.Handle, error) + func URLFor(ctx context.Context, bc blobcache.Service, volh blobcache.Handle) (*blobcache.URL, error) + func View(ctx context.Context, svc blobcache.Service, volh blobcache.Handle, ...) error + func View1[T any](ctx context.Context, svc blobcache.Service, volh blobcache.Handle, ...) (T, error) + type Loader interface + Load func(ctx context.Context, dst *[]byte) error + type RO interface + Exists func(ctx context.Context, cids []blobcache.CID, dst []bool) error + Get func(ctx context.Context, cid blobcache.CID, buf []byte) (int, error) + Hash func(data []byte) blobcache.CID + MaxSize func() int + type RW interface + type RWD interface + Delete func(ctx context.Context, cids []blobcache.CID) error + type Saver interface + Save func(ctx context.Context, src []byte) error + type WO interface + Exists func(ctx context.Context, cids []blobcache.CID, dst []bool) error + Hash func(data []byte) blobcache.CID + MaxSize func() int + Post func(ctx context.Context, data []byte) (blobcache.CID, error) v0.0.1 Nov 25, 2025 Changes in this version + func CreateOnSameHost(ctx context.Context, s blobcache.Service, base blobcache.Handle, ...) (*blobcache.Handle, *blobcache.FQOID, error) + func ExistsSingle(ctx context.Context, s interface{ ... }, txh Handle, cid CID) (bool, error) + type ActionSet = blobcache.ActionSet + type CID = blobcache.CID + type Handle = blobcache.Handle + type OID = blobcache.OID + type Tx struct + func BeginTx(ctx context.Context, s blobcache.Service, volH blobcache.Handle, ...) (*Tx, error) + func NewTx(s blobcache.Service, h blobcache.Handle, hash blobcache.HashFunc, maxSize int) *Tx + func (tx *Tx) Abort(ctx context.Context) error + func (tx *Tx) Commit(ctx context.Context) error + func (tx *Tx) Copy(ctx context.Context, srcs []*Tx, cids []CID, success []bool) error + func (tx *Tx) Delete(ctx context.Context, cids []CID) error + func (tx *Tx) Exists(ctx context.Context, cids []CID, exists []bool) error + func (tx *Tx) Get(ctx context.Context, cid CID, buf []byte) (int, error) + func (tx *Tx) Hash(data []byte) CID + func (tx *Tx) IsVisited(ctx context.Context, cids []CID, yesVisited []bool) error + func (tx *Tx) KeepAlive(ctx context.Context) error + func (tx *Tx) Link(ctx context.Context, target blobcache.Handle, mask ActionSet) error + func (tx *Tx) Load(ctx context.Context, dst *[]byte) error + func (tx *Tx) MaxSize() int + func (tx *Tx) Post(ctx context.Context, data []byte) (CID, error) + func (tx *Tx) Save(ctx context.Context, src []byte) error + func (tx *Tx) Unlink(ctx context.Context, targets []OID) error + func (tx *Tx) Visit(ctx context.Context, cids []CID) error + func (tx *Tx) VisitLinks(ctx context.Context, targets []OID) error + type TxSalt struct + func BeginTxSalt(ctx context.Context, s blobcache.Service, volH Handle, txp blobcache.TxParams) (*TxSalt, error) + func NewTxSalt(s blobcache.Service, h Handle, hash blobcache.HashFunc, maxSize int) *TxSalt + func (tx *TxSalt) Abort(ctx context.Context) error + func (tx *TxSalt) Commit(ctx context.Context) error + func (tx *TxSalt) Delete(ctx context.Context, cid CID) error + func (tx *TxSalt) Exists(ctx context.Context, cid CID) (bool, error) + func (tx *TxSalt) Get(ctx context.Context, cid CID, buf []byte, opts blobcache.GetOpts) (int, error) + func (tx *TxSalt) Hash(salt *CID, data []byte) CID + func (tx *TxSalt) KeepAlive(ctx context.Context) error + func (tx *TxSalt) Load(ctx context.Context, dst *[]byte) error + func (tx *TxSalt) MaxSize() int + func (tx *TxSalt) Post(ctx context.Context, data []byte, opts blobcache.PostOpts) (CID, error) + func (tx *TxSalt) Save(ctx context.Context, src []byte) error