interface.go 275 Bytes
Newer Older
1 2 3 4
package bitswap

import (
	bsnet "github.com/jbenet/go-ipfs/exchange/bitswap/network"
Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
5
	peer "github.com/jbenet/go-ipfs/p2p/peer"
6 7 8 9
	"github.com/jbenet/go-ipfs/util/testutil"
)

type Network interface {
10
	Adapter(testutil.Identity) bsnet.BitSwapNetwork
11 12 13

	HasPeer(peer.ID) bool
}