// Package core provides convenient access to foundational, central go-p2p primitives via type aliases. package core import ( "gitlab.dms3.io/mf/go-multiaddr" "gitlab.dms3.io/p2p/go-p2p-core/host" "gitlab.dms3.io/p2p/go-p2p-core/network" "gitlab.dms3.io/p2p/go-p2p-core/peer" "gitlab.dms3.io/p2p/go-p2p-core/protocol" ) // Multiaddr aliases the Multiaddr type from gitlab.dms3.io/mf/go-multiaddr. // // Refer to the docs on that type for more info. type Multiaddr = multiaddr.Multiaddr // PeerID aliases peer.ID. // // Refer to the docs on that type for more info. type PeerID = peer.ID // ProtocolID aliases protocol.ID. // // Refer to the docs on that type for more info. type ProtocolID = protocol.ID // PeerAddrInfo aliases peer.AddrInfo. // // Refer to the docs on that type for more info. type PeerAddrInfo = peer.AddrInfo // Host aliases host.Host. // // Refer to the docs on that type for more info. type Host = host.Host // Network aliases network.Network. // // Refer to the docs on that type for more info. type Network = network.Network // Conn aliases network.Conn. // // Refer to the docs on that type for more info. type Conn = network.Conn // Stream aliases network.Stream. // // Refer to the docs on that type for more info. type Stream = network.Stream