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