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

import (
4
	bsnet "github.com/ipfs/go-ipfs/exchange/bitswap/network"
5
	"github.com/ipfs/go-ipfs/thirdparty/testutil"
Jeromy's avatar
Jeromy committed
6
	peer "gx/ipfs/QmWtbQU15LaB5B1JC2F7TV9P4K88vD3PpA4AJrwfCjhML8/go-libp2p-peer"
7 8 9
)

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

	HasPeer(peer.ID) bool
}