mirror of
https://github.com/ipfs/kubo.git
synced 2025-09-09 19:32:24 +08:00
14 lines
310 B
Go
14 lines
310 B
Go
package bitswap
|
|
|
|
import (
|
|
bsnet "github.com/ipfs/go-ipfs/exchange/bitswap/network"
|
|
"github.com/ipfs/go-ipfs/util/testutil"
|
|
peer "gx/ipfs/QmY3NAw959vbE1oJooP9HchcRdBsbxhgQsEZTRhKgvoSuC/go-libp2p/p2p/peer"
|
|
)
|
|
|
|
type Network interface {
|
|
Adapter(testutil.Identity) bsnet.BitSwapNetwork
|
|
|
|
HasPeer(peer.ID) bool
|
|
}
|