mirror of
https://github.com/ipfs/kubo.git
synced 2026-02-21 10:27:46 +08:00
Note: This commit is technically broken. However, I need to make a bunch of cmds changes to make this work and I'd rather not bundle both changes into a single commit. License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>
14 lines
335 B
Go
14 lines
335 B
Go
package bitswap
|
|
|
|
import (
|
|
bsnet "github.com/ipfs/go-ipfs/exchange/bitswap/network"
|
|
"gx/ipfs/QmQgLZP9haZheimMHqqAjJh2LhRmNfEoZDfbtkpeMhi9xK/go-testutil"
|
|
peer "gx/ipfs/QmXYjuNuxVzXKJCfWasQk1RqkhVLDM9jtUKhqc2WPQmFSB/go-libp2p-peer"
|
|
)
|
|
|
|
type Network interface {
|
|
Adapter(testutil.Identity) bsnet.BitSwapNetwork
|
|
|
|
HasPeer(peer.ID) bool
|
|
}
|