package
1.12.3-warp-verify6
Repository: https://github.com/ava-labs/avalanchego.git
Documentation: pkg.go.dev
# Functions
NewNetwork returns an instance of Network.
No description provided by the author
NewSlidingWindowThrottler returns a new instance of SlidingWindowThrottler.
No description provided by the author
No description provided by the author
No description provided by the author
Parse a gossip or request message.
PrefixMessage prefixes the original message with the protocol identifier.
No description provided by the author
WithValidatorSampling configures Client.AppRequestAny to sample validators.
# Constants
Standardized identifiers for application protocol handlers.
SignatureRequestHandlerID is specified in ACP-118: https://github.com/avalanche-foundation/ACPs/tree/main/ACPs/118-warp-signature-request.
Standardized identifiers for application protocol handlers.
# Variables
No description provided by the author
No description provided by the author
ErrNotValidator should be used to indicate that a request failed due to the requesting peer not being a validator.
No description provided by the author
ErrThrottled should be used to indicate that a request failed due to the requesting peer exceeding a rate limit.
ErrUnexpected should be used to indicate that a request failed due to a generic error.
ErrUnregisteredHandler should be used to indicate that a request failed due to it not matching a registered handler.
No description provided by the author
# Structs
No description provided by the author
Network exposes networking state and supports building p2p application protocols.
NoOpHandler drops all messages.
Peers contains metadata about the current set of connected peers.
Tracks the bandwidth of responses coming from peers, preferring to contact peers with known good bandwidth, connecting to new peers with an exponentially decaying probability.
SlidingWindowThrottler is an implementation of the sliding window throttling algorithm.
No description provided by the author
No description provided by the author
ValidatorHandler drops messages from non-validators.
Validators contains a set of nodes that are staking.
# Interfaces
ClientOption configures Client.
Handler is the server-side logic for virtual machine application protocols.
NodeSampler samples nodes in network.
No description provided by the author
No description provided by the author
No description provided by the author
# Type aliases
AppResponseCallback is called upon receiving an AppResponse for an AppRequest issued by Client.