package
0.0.0-20220616152218-3da4c06c590a
Repository: https://github.com/astra-net/astra-network.git
Documentation: pkg.go.dev
# Functions
ConstructMessage constructs the p2p message as [messageType, contentSize, content].
NewHost ..
# Constants
MaxMessageHandlers ..
MaxMessageSize is 2Mb.
SetAsideForConsensus set the number of active validation goroutines for the consensus topic.
SetAsideOtherwise set the number of active validation goroutines for other topic.
# Structs
Counter is a wrapper around a metrics.BandwidthCounter that meters both the inbound and outbound network traffic.
HostConfig is the config structure to create a new host.
HostV2 is the version 2 p2p host.
NamedTopic represents pubsub topic Name is the human readable topic, groupID.
Peer is the object for a p2p peer (node).
# Interfaces
Host is the client + server in p2p network.
# Type aliases
No description provided by the author
No description provided by the author