2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: This package has moved into go-libp2p as a sub-package: github.com/libp2p/go-libp2p/core.
|
|
|
|
//
|
2019-05-23 01:31:11 +08:00
|
|
|
// Package core provides convenient access to foundational, central go-libp2p primitives via type aliases.
|
|
|
|
package core
|
|
|
|
|
|
|
|
import (
|
2022-08-18 23:54:48 +08:00
|
|
|
"github.com/libp2p/go-libp2p/core"
|
2019-05-23 01:31:11 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
// Multiaddr aliases the Multiaddr type from github.com/multiformats/go-multiaddr.
|
|
|
|
//
|
|
|
|
// Refer to the docs on that type for more info.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core.Multiaddr instead
|
|
|
|
type Multiaddr = core.Multiaddr
|
2019-05-23 01:31:11 +08:00
|
|
|
|
|
|
|
// PeerID aliases peer.ID.
|
|
|
|
//
|
|
|
|
// Refer to the docs on that type for more info.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core.PeerID instead
|
|
|
|
type PeerID = core.PeerID
|
2019-05-23 01:31:11 +08:00
|
|
|
|
2020-08-08 19:40:23 +08:00
|
|
|
// ProtocolID aliases protocol.ID.
|
2019-05-23 01:31:11 +08:00
|
|
|
//
|
|
|
|
// Refer to the docs on that type for more info.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core.ProtocolID instead
|
|
|
|
type ProtocolID = core.ProtocolID
|
2019-05-23 01:31:11 +08:00
|
|
|
|
|
|
|
// PeerAddrInfo aliases peer.AddrInfo.
|
|
|
|
//
|
|
|
|
// Refer to the docs on that type for more info.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core.PeerAddrInfo instead
|
|
|
|
type PeerAddrInfo = core.PeerAddrInfo
|
2019-05-23 01:31:11 +08:00
|
|
|
|
|
|
|
// Host aliases host.Host.
|
|
|
|
//
|
|
|
|
// Refer to the docs on that type for more info.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core.Host instead
|
|
|
|
type Host = core.Host
|
2019-05-23 01:31:11 +08:00
|
|
|
|
|
|
|
// Network aliases network.Network.
|
|
|
|
//
|
|
|
|
// Refer to the docs on that type for more info.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core.Network instead
|
|
|
|
type Network = core.Network
|
2019-05-23 01:31:11 +08:00
|
|
|
|
|
|
|
// Conn aliases network.Conn.
|
|
|
|
//
|
|
|
|
// Refer to the docs on that type for more info.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core.Conn instead
|
|
|
|
type Conn = core.Conn
|
2019-05-23 01:31:11 +08:00
|
|
|
|
|
|
|
// Stream aliases network.Stream.
|
|
|
|
//
|
|
|
|
// Refer to the docs on that type for more info.
|
2022-08-18 23:54:48 +08:00
|
|
|
// Deprecated: use github.com/libp2p/go-libp2p/core.Stream instead
|
|
|
|
type Stream = core.Stream
|