package testnet import ( "github.com/libp2p/go-libp2p-core/peer" tnet "github.com/libp2p/go-libp2p-testing/net" gsnet "github.com/ipfs/go-graphsync/network" ) // Network is an interface for generating graphsync network interfaces // based on a test network. type Network interface { Adapter(tnet.Identity) gsnet.GraphSyncNetwork HasPeer(peer.ID) bool }