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
Click to show internal directories.
Click to hide internal directories.