This repository has been archived by the owner on Sep 6, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1185a08
commit 9994046
Showing
122 changed files
with
1,748 additions
and
19,429 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
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,50 +1,56 @@ | ||
// Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/core. | ||
// | ||
// Package core provides convenient access to foundational, central go-libp2p primitives via type aliases. | ||
package core | ||
|
||
import ( | ||
"github.com/libp2p/go-libp2p-core/host" | ||
"github.com/libp2p/go-libp2p-core/network" | ||
"github.com/libp2p/go-libp2p-core/peer" | ||
"github.com/libp2p/go-libp2p-core/protocol" | ||
"github.com/multiformats/go-multiaddr" | ||
"github.com/libp2p/go-libp2p/core" | ||
) | ||
|
||
// Multiaddr aliases the Multiaddr type from github.com/multiformats/go-multiaddr. | ||
// | ||
// Refer to the docs on that type for more info. | ||
type Multiaddr = multiaddr.Multiaddr | ||
// Deprecated: use github.com/libp2p/go-libp2p/core.Multiaddr instead | ||
type Multiaddr = core.Multiaddr | ||
|
||
// PeerID aliases peer.ID. | ||
// | ||
// Refer to the docs on that type for more info. | ||
type PeerID = peer.ID | ||
// Deprecated: use github.com/libp2p/go-libp2p/core.PeerID instead | ||
type PeerID = core.PeerID | ||
|
||
// ProtocolID aliases protocol.ID. | ||
// | ||
// Refer to the docs on that type for more info. | ||
type ProtocolID = protocol.ID | ||
// Deprecated: use github.com/libp2p/go-libp2p/core.ProtocolID instead | ||
type ProtocolID = core.ProtocolID | ||
|
||
// PeerAddrInfo aliases peer.AddrInfo. | ||
// | ||
// Refer to the docs on that type for more info. | ||
type PeerAddrInfo = peer.AddrInfo | ||
// Deprecated: use github.com/libp2p/go-libp2p/core.PeerAddrInfo instead | ||
type PeerAddrInfo = core.PeerAddrInfo | ||
|
||
// Host aliases host.Host. | ||
// | ||
// Refer to the docs on that type for more info. | ||
type Host = host.Host | ||
// Deprecated: use github.com/libp2p/go-libp2p/core.Host instead | ||
type Host = core.Host | ||
|
||
// Network aliases network.Network. | ||
// | ||
// Refer to the docs on that type for more info. | ||
type Network = network.Network | ||
// Deprecated: use github.com/libp2p/go-libp2p/core.Network instead | ||
type Network = core.Network | ||
|
||
// Conn aliases network.Conn. | ||
// | ||
// Refer to the docs on that type for more info. | ||
type Conn = network.Conn | ||
// Deprecated: use github.com/libp2p/go-libp2p/core.Conn instead | ||
type Conn = core.Conn | ||
|
||
// Stream aliases network.Stream. | ||
// | ||
// Refer to the docs on that type for more info. | ||
type Stream = network.Stream | ||
// Deprecated: use github.com/libp2p/go-libp2p/core.Stream instead | ||
type Stream = core.Stream |
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 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 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
Oops, something went wrong.