package
1.8.2
Repository: https://github.com/multiversx/mx-chain-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Functions

MessageOriginatorPid will output the message peer id in a pretty format If it can, it will display the last displayLastPidChars (12) characters from the pid.
MessageOriginatorSeq will output the sequence number as hex.
PeerIdToShortString trims the first displayLastPidChars characters of the provided peer ID after converting the peer ID to string using the Pretty functionality.

# Constants

ConnectionWatcherTypePrint - new connection found will be printed in the log file.
DefaultWithScaleResourceLimiter defines the default & autoscale resource limiter.
FullArchiveNetwork defines the full archive network.
ListsSharder is the variant that uses lists.
LocalHostListenAddrWithIp4AndTcp defines the local host listening ip v.4 address and TCP.
MainNetwork defines the main network.
NilListSharder is the variant that will not do connection trimming.

# Variables

ErrNilMessage signals that a nil message has been received.
ErrNilPreferredPeersHolder signals that a nil preferred peers holder was provided.
ErrNilStatusHandler signals that a nil status handler has been provided.

# Structs

SendableData represents the struct used in data throttler implementation.

# Interfaces

ChannelLoadBalancer defines what a load balancer that uses chans should do.
IdentityGenerator represent an entity able to create a random p2p identity.
NetworkShardingCollector defines the updating methods used by the network sharding component The interface assures that the collected data will be used by the p2p network sharding components.
P2PKeyConverter defines what a p2p key converter can do.
P2PSigningHandler defines the behaviour of a component able to verify p2p message signature.
PeersRatingHandler represents an entity able to handle peers ratings.
PreferredPeersHolderHandler defines the behavior of a component able to handle preferred peers operations.
SyncTimer represents an entity able to tell the current time.

# Type aliases

BroadcastMethod defines the broadcast method of the message.
ConnectedPeersInfo represents the DTO structure used to output the metrics for connected peers.
ConnectionsHandler defines the behaviour of a component able to handle connections.
Debugger represent a p2p debugger able to print p2p statistics (messages received/sent per topic).
Logger defines the behavior of a data logger component.
MessageHandler defines the behaviour of a component able to send and process messages.
MessageP2P defines what a p2p message can do (should return).
MessageProcessor is the interface used to describe what a receive message processor should do All implementations that will be called from Messenger implementation will need to satisfy this interface If the function returns a non nil value, the received message will not be propagated to its connected peers.
Messenger is the main struct used for communication with other peers.
NetworkType defines the type of the network a messenger is running on.
PeerDenialEvaluator defines the behavior of a component that is able to decide if a peer ID is black listed or not TODO merge this interface with the PeerShardResolver => P2PProtocolHandler ? TODO move antiflooding inside network messenger.
PeerShardResolver is able to resolve the link between the provided PeerID and the shardID.
PeersRatingMonitor represents an entity able to provide peers ratings.