bitswap

package
v0.0.0-...-bebc87d Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2014 License: MIT Imports: 7 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

	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