README
¶
go-ipfs-exchange-interface
go-ipfs-exchange-interface defines the IPFS exchange interface
Lead Maintainer
Table of Contents
Install
go-ipfs-exchange-interface
works like a regular Go module:
> go get github.com/ipfs/go-ipfs-exchange-interface
Usage
import "github.com/ipfs/go-ipfs-exchange-interface"
Check the GoDoc documentation
Contribute
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
License
MIT © Protocol Labs, Inc.
Documentation
¶
Overview ¶
Package exchange defines the DMS3 exchange interface
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Fetcher ¶
type Fetcher interface { // GetBlock returns the block associated with a given key. GetBlock(context.Context, cid.Cid) (blocks.Block, error) GetBlocks(context.Context, []cid.Cid) (<-chan blocks.Block, error) }
Fetcher is an object that can be used to retrieve blocks
Click to show internal directories.
Click to hide internal directories.