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

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

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

	HasPeer(peer.ID) bool
}