mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-23 11:27:42 +08:00
14 lines
312 B
Go
14 lines
312 B
Go
package bitswap
|
|
|
|
import (
|
|
bsnet "github.com/ipfs/go-ipfs/exchange/bitswap/network"
|
|
"github.com/ipfs/go-ipfs/thirdparty/testutil"
|
|
peer "gx/ipfs/QmWUswjn261LSyVxWAEpMVtPdy8zmKBJJfBpG3Qdpa8ZsE/go-libp2p-peer"
|
|
)
|
|
|
|
type Network interface {
|
|
Adapter(testutil.Identity) bsnet.BitSwapNetwork
|
|
|
|
HasPeer(peer.ID) bool
|
|
}
|