bitswap

package
v0.0.0-...-c9e5fdf Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2014 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NoResponse = errors.New("No response received from the receiver")

Functions

This section is empty.

Types

type Network

type Network interface {
	Adapter(peer.Peer) bsnet.Adapter

	HasPeer(peer.Peer) bool

	SendMessage(
		ctx context.Context,
		from peer.Peer,
		to peer.Peer,
		message bsmsg.BitSwapMessage) error

	SendRequest(
		ctx context.Context,
		from peer.Peer,
		to peer.Peer,
		message bsmsg.BitSwapMessage) (
		incoming bsmsg.BitSwapMessage, err error)
}

func VirtualNetwork

func VirtualNetwork() Network

Jump to

Keyboard shortcuts

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