Documentation ¶
Overview ¶
package exchange defines the IPFS Exchange interface this is here to avoid vendoring IPFS for now.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { // GetBlock returns the block associated with a given key. GetBlock(context.Context, key.Key) (*blocks.Block, error) GetBlocks(context.Context, []key.Key) (<-chan *blocks.Block, error) // TODO Should callers be concerned with whether the block was made // available on the network? HasBlock(context.Context, *blocks.Block) error io.Closer }
Any type that implements exchange.Interface may be used as an IPFS block exchange protocol.
Click to show internal directories.
Click to hide internal directories.