package
2.0.8+incompatible
Repository: https://github.com/etherzero-org/go-etherzero.git
Documentation: pkg.go.dev

# Packages

Package discover implements the Node Discovery Protocol.
Package discv5 implements the RLPx v5 Topic Discovery Protocol.
No description provided by the author
Package enr implements Ethereum Node Records as defined in EIP-778.
Package nat provides access to common network port mapping protocols.
Package netutil contains extensions to the net package.
Package protocols is an extension to p2p.
Package simulations simulates p2p networks.
No description provided by the author

# Functions

ExpectMsg reads a message from r and verifies that its code and encoded RLP content match the provided values.
MsgPipe creates a message pipe.
NewPeer returns a peer for testing purposes.
Send writes an RLP-encoded message with the given code.
SendItems writes an RLP with the given code and data elements.
SubscribeMeteredPeerEvent registers a subscription for peer life-cycle events if metrics collection is enabled.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
This amount of peers are individually metered.
Name for the registered inbound connects meter.
Name for the registered inbound traffic meter.
Name for the registered outbound connects meter.
Name for the registered outbound traffic meter.
PeerConnected is the type of event emitted when a peer successfully made the handshake.
PeerDisconnected is the type of event emitted when a peer disconnects.
PeerEventTypeAdd is the type of event emitted when a peer is added to a p2p.Server.
PeerEventTypeDrop is the type of event emitted when a peer is dropped from a p2p.Server.
PeerEventTypeMsgRecv is the type of event emitted when a message is received from a peer.
PeerEventTypeMsgSend is the type of event emitted when a message is successfully sent to a peer.
PeerHandshakeFailed is the type of event emitted when a peer fails to make the handshake or disconnects before the handshake.

# Variables

ErrPipeClosed is returned from pipe operations after the pipe has been closed.
No description provided by the author
Registry containing the peer egress.
Registry containing the peer ingress.

# Structs

Cap is the structure of a peer capability.
Config holds Server options.
MeteredPeerEvent is an event emitted when peers connect or disconnect.
Msg defines the structure of a p2p message.
MsgPipeRW is an endpoint of a MsgReadWriter pipe.
NodeInfo represents a short summary of the information known about the host.
Peer represents a connected remote node.
PeerEvent is an event emitted when peers are either added or dropped from a p2p.Server or when a message is sent or received on a peer connection.
PeerInfo represents a short summary of the information known about a connected peer.
Protocol represents a P2P subprotocol implementation.
Server manages all peer connections.
TCPDialer implements the NodeDialer interface by using a net.Dialer to create TCP connections to nodes in the network.

# Interfaces

No description provided by the author
MsgReadWriter provides reading and writing of encoded messages.
No description provided by the author
NodeDialer is used to connect to nodes in the network, typically by using an underlying net.Dialer but also using net.Pipe in tests.

# Type aliases

No description provided by the author
MeteredPeerEventType is the type of peer events emitted by a metered connection.
PeerEventType is the type of peer events emitted by a p2p.Server.