package core
import "github.com/libp2p/go-libp2p/core"
Package core provides convenient access to foundational, central go-libp2p primitives via type aliases.
Index ¶
- type Conn
- type Host
- type Multiaddr
- type Network
- type PeerAddrInfo
- type PeerID
- type ProtocolID
- type Stream
Types ¶
type Conn ¶
Conn aliases network.Conn.
Refer to the docs on that type for more info.
type Host ¶
Host aliases host.Host.
Refer to the docs on that type for more info.
type Multiaddr ¶
type Multiaddr = multiaddr.Multiaddr
Multiaddr aliases the Multiaddr type from github.com/multiformats/go-multiaddr.
Refer to the docs on that type for more info.
type Network ¶
Network aliases network.Network.
Refer to the docs on that type for more info.
type PeerAddrInfo ¶
PeerAddrInfo aliases peer.AddrInfo.
Refer to the docs on that type for more info.
type PeerID ¶
PeerID aliases peer.ID.
Refer to the docs on that type for more info.
type ProtocolID ¶
ProtocolID aliases protocol.ID.
Refer to the docs on that type for more info.
type Stream ¶
Stream aliases network.Stream.
Refer to the docs on that type for more info.
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
core/canonicallog | |
core/connmgr | Package connmgr provides connection tracking and management interfaces for libp2p. |
core/control | |
core/crypto | Package crypto implements various cryptographic utilities used by libp2p. |
core/crypto/pb | |
core/discovery | Package discovery provides service advertisement and peer discovery interfaces for libp2p. |
core/event | Package event contains the abstractions for a local event bus, along with the standard events that libp2p subsystems may emit. |
core/host | Package host provides the core Host interface for libp2p. |
core/internal | |
core/metrics | Package metrics provides metrics collection and reporting interfaces for libp2p. |
core/network | Package network provides core networking abstractions for libp2p. |
core/network/mocks | Package mocknetwork is a generated GoMock package. |
core/peer | Package peer implements an object used to represent peers in the libp2p network. |
core/peer/pb | |
core/peerstore | Package peerstore provides types and interfaces for local storage of address information, metadata, and public key material about libp2p peers. |
core/pnet | Package pnet provides interfaces for private networking in libp2p. |
core/protocol | Package protocol provides core interfaces for protocol routing and negotiation in libp2p. |
core/record | |
core/record/pb | |
core/routing | Package routing provides interfaces for peer routing and content routing in libp2p. |
core/sec | Package sec provides secure connection and transport interfaces for libp2p. |
core/sec/insecure | Package insecure provides an insecure, unencrypted implementation of the SecureConn and SecureTransport interfaces. |
core/sec/insecure/pb | |
core/test | |
core/transport | Package transport provides the Transport interface, which represents the devices and network protocols used to send and receive data. |
- Version
- v0.42.0 (latest)
- Published
- Jun 18, 2025
- Platform
- linux/amd64
- Imports
- 5 packages
- Last checked
- 1 week ago –
Tools for package owners.