This repository has been archived by the owner on Dec 7, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consolidate abstractions and core types into go-libp2p-core (#29)
- Loading branch information
Showing
7 changed files
with
42 additions
and
226 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// Deprecated: use github.com/libp2p/go-libp2p-core/host instead. | ||
package host | ||
|
||
import ( | ||
"github.com/libp2p/go-libp2p-core/helpers" | ||
"github.com/libp2p/go-libp2p-core/peer" | ||
"github.com/libp2p/go-libp2p-core/protocol" | ||
|
||
core "github.com/libp2p/go-libp2p-core/host" | ||
) | ||
|
||
// Deprecated: use github.com/libp2p/go-libp2p-core/host.Host instead. | ||
type Host = core.Host | ||
|
||
// Deprecated: github.com/libp2p/go-libp2p-core/peer.InfoFromHost. | ||
func PeerInfoFromHost(h Host) *peer.AddrInfo { | ||
return core.InfoFromHost(h) | ||
} | ||
|
||
// Deprecated: use github.com/libp2p/go-libp2p-core/helpers.MultistreamSemverMatcher. | ||
func MultistreamSemverMatcher(base protocol.ID) (func(string) bool, error) { | ||
return helpers.MultistreamSemverMatcher(base) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,3 @@ | ||
module github.com/libp2p/go-libp2p-host | ||
|
||
require ( | ||
github.com/coreos/go-semver v0.2.1-0.20180108230905-e214231b295a | ||
github.com/libp2p/go-libp2p-interface-connmgr v0.0.4 | ||
github.com/libp2p/go-libp2p-net v0.0.1 | ||
github.com/libp2p/go-libp2p-peer v0.0.1 | ||
github.com/libp2p/go-libp2p-peerstore v0.0.1 | ||
github.com/libp2p/go-libp2p-protocol v0.0.1 | ||
github.com/multiformats/go-multiaddr v0.0.1 | ||
github.com/multiformats/go-multistream v0.0.1 | ||
) | ||
require github.com/libp2p/go-libp2p-core v0.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.