interface.go 269 Bytes
Newer Older
1 2 3
package bitswap

import (
4 5 6
	bsnet "github.com/ipfs/go-ipfs/exchange/bitswap/network"
	peer "github.com/ipfs/go-ipfs/p2p/peer"
	"github.com/ipfs/go-ipfs/util/testutil"
7 8 9
)

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

	HasPeer(peer.ID) bool
}