exchange

package
v0.0.0-...-e4696f9 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2014 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

package exchange defines the IPFS Exchange interface

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {

	// Block returns the block associated with a given key.
	Block(context.Context, u.Key) (*blocks.Block, error)

	// TODO Should callers be concerned with whether the block was made
	// available on the network?
	HasBlock(context.Context, blocks.Block) error
}

Any type that implements exchange.Interface may be used as an IPFS block exchange protocol.

Directories

Path Synopsis
package bitswap implements the IPFS Exchange interface with the BitSwap bilateral exchange protocol.
package bitswap implements the IPFS Exchange interface with the BitSwap bilateral exchange protocol.
message/internal/pb
Package bitswap_message_pb is a generated protocol buffer package.
Package bitswap_message_pb is a generated protocol buffer package.
package offline implements an object that implements the exchange interface but returns nil values to every request.
package offline implements an object that implements the exchange interface but returns nil values to every request.

Jump to

Keyboard shortcuts

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