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 76
/
Copy pathalias.go
56 lines (47 loc) · 1.74 KB
/
alias.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
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"
)
// Multiaddr aliases the Multiaddr type from github.com/multiformats/go-multiaddr.
//
// Refer to the docs on that type for more info.
// 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.
// 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.
// 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.
// 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.
// 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.
// 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.
// 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.
// Deprecated: use github.com/libp2p/go-libp2p/core.Stream instead
type Stream = core.Stream