memory

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

type Store struct {
	// contains filtered or unexported fields
}

func New

func New() *Store

func (*Store) Exists

func (m *Store) Exists(ctx context.Context, space did.DID, root cid.Cid) (bool, error)

func (*Store) Get

func (m *Store) Get(ctx context.Context, space did.DID, root cid.Cid) (upload.UploadRecord, error)

func (*Store) Inspect

func (m *Store) Inspect(ctx context.Context, root cid.Cid) (upload.UploadInspectRecord, error)

func (*Store) List

func (m *Store) List(ctx context.Context, space did.DID, options ...upload.ListOption) (store.Page[upload.UploadRecord], error)

func (*Store) ListShards

func (m *Store) ListShards(ctx context.Context, space did.DID, root cid.Cid, options ...upload.ListShardsOption) (store.Page[cid.Cid], error)

func (*Store) Remove

func (m *Store) Remove(ctx context.Context, space did.DID, root cid.Cid) error

func (*Store) Upsert

func (m *Store) Upsert(ctx context.Context, space did.DID, root cid.Cid, shards []cid.Cid, cause cid.Cid) error

Jump to

Keyboard shortcuts

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