Documentation ¶
Rendered for js/wasm
Index ¶
- func New(bridged js.Value) nodestore.DagStore
- type JSStore
- func (jss *JSStore) Add(ctx context.Context, n format.Node) error
- func (jss *JSStore) AddMany(ctx context.Context, nodes []format.Node) error
- func (jss *JSStore) Get(ctx context.Context, c cid.Cid) (format.Node, error)
- func (jss *JSStore) GetMany(ctx context.Context, cids []cid.Cid) <-chan *format.NodeOption
- func (jss *JSStore) Remove(ctx context.Context, c cid.Cid) error
- func (jss *JSStore) RemoveMany(ctx context.Context, cids []cid.Cid) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JSStore ¶
JSStore is a go wrapper to use a javascript nodestore from wasm it implements the nodestore.DagStore interface after being passed an underlying javascript block-service implementation (for instance: https://github.com/ipfs/js-ipfs-block-service )
Click to show internal directories.
Click to hide internal directories.