ipld-eth-server/vendor/github.com/ipfs/go-bitswap/testnet/interface.go

14 lines
247 B
Go

package bitswap
import (
bsnet "github.com/ipfs/go-bitswap/network"
peer "github.com/libp2p/go-libp2p-peer"
"github.com/libp2p/go-testutil"
)
type Network interface {
Adapter(testutil.Identity) bsnet.BitSwapNetwork
HasPeer(peer.ID) bool
}