package
0.3.10
Repository: https://github.com/prysmaticlabs/go-ethereum.git
Documentation: pkg.go.dev

# Packages

Package connmgr : This file is forked from github.com/libp2p/go-libp2p-core/connmgr/connmgr.go.
Package encoder allows for registering custom data encoders for information sent as raw bytes over the wire via p2p to other nodes.
Package peers provides information about peers at the Ethereum protocol level.
No description provided by the author

# Functions

MakePeer from multiaddress string.
NewService initializes a new p2p service compatible with shared.Service interface.

# Variables

ErrMessageNotMapped occurs on a Broadcast attempt when a message has not been defined in the GossipTypeMapping.
GossipTopicMappings represent the protocol ID to protobuf message type map for easy lookup.
GossipTypeMapping is the inverse of GossipTopicMappings so that an arbitrary protobuf message can be mapped to a protocol ID string.
RPCTopicMappings represent the protocol ID to protobuf message type map for easy lookup.
RPCTypeMapping is the inverse of RPCTopicMappings so that an arbitrary protobuf message can be mapped to a protocol ID string.

# Structs

Config for the p2p service.
Service for managing peer to peer (p2p) networking.

# Interfaces

Broadcaster broadcasts messages to peers over the p2p pubsub protocol.
ConnectionHandler configures p2p to handle connections with a peer.
EncodingProvider provides p2p network encoding.
Listener defines the discovery V5 network interface that is used to communicate with other peers.
P2P represents the full p2p interface composed of all of the sub-interfaces.
PeerManager abstracts some peer management methods from libp2p.
PeersProvider abstracts obtaining our current list of known peers status.
PubSubProvider provides the p2p pubsub protocol.
Sender abstracts the sending functionality from libp2p.
SetStreamHandler configures p2p to handle streams of a certain topic ID.