Documentation
¶
Index ¶
- func Block(ctx context.Context, f fetcher.Fetcher, link ipld.Link) (ipld.Node, error)deprecated
- func BlockAll(ctx context.Context, f fetcher.Fetcher, root ipld.Link, ...) errordeprecated
- func BlockMatching(ctx context.Context, f fetcher.Fetcher, root ipld.Link, match ipld.Node, ...) errordeprecated
- func OnBlocks(bv BlockCallback) fetcher.FetchCallbackdeprecated
- func OnUniqueBlocks(bv BlockCallback) fetcher.FetchCallbackdeprecated
- type BlockCallbackdeprecated
- type BlockResultdeprecated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BlockAll
deprecated
added in
v1.3.0
func BlockMatching
deprecated
added in
v1.3.0
func BlockMatching(ctx context.Context, f fetcher.Fetcher, root ipld.Link, match ipld.Node, cb fetcher.FetchCallback) error
BlockMatching traverses a schemaless node graph starting with the given link using the given selector and possibly crossing block boundaries. Each matched node is sent to the FetchResult channel.
Deprecated: use github.com/ipfs/boxo/fetcher/helpers.BlockMatching
func OnBlocks
deprecated
func OnBlocks(bv BlockCallback) fetcher.FetchCallback
OnBlocks produces a fetch call back that only gets called when visiting blocks during a fetch
Deprecated: use github.com/ipfs/boxo/fetcher/helpers.OnBlocks
func OnUniqueBlocks
deprecated
func OnUniqueBlocks(bv BlockCallback) fetcher.FetchCallback
OnUniqueBlocks is a callback that only gets called visiting each block once
Deprecated: use github.com/ipfs/boxo/fetcher/helpers.OnUniqueBlocks
Types ¶
type BlockCallback
deprecated
type BlockCallback func(BlockResult) error
BlockCallback is a callback for visiting blocks
Deprecated: use github.com/ipfs/boxo/fetcher/helpers.BlockCallback
type BlockResult
deprecated
type BlockResult struct { Node ipld.Node Link ipld.Link }
BlockResult specifies a node at the top of a block boundary
Deprecated: use github.com/ipfs/boxo/fetcher/helpers.BlockResult