interface.go 267 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
package bitswap

import (
	bsnet "github.com/jbenet/go-ipfs/exchange/bitswap/network"
	peer "github.com/jbenet/go-ipfs/peer"
	"github.com/jbenet/go-ipfs/util/testutil"
)

type Network interface {
	Adapter(testutil.Peer) bsnet.BitSwapNetwork

	HasPeer(peer.ID) bool
}