Versions in this module Expand all Collapse all v1 v1.0.0 Jul 21, 2022 Changes in this version + const ConnectedPeersKey + const SendFailRateKey + const TimeSinceLastMsgReceivedKey + const TimeSinceLastMsgSentKey + type Config struct + AllowPrivateIPs bool + Beacons validators.Set + CPUTargeter tracker.Targeter + CompressionEnabled bool + DialerConfig dialer.Config + DiskTargeter tracker.Targeter + MaxClockDifference time.Duration + MaximumInboundMessageTimeout time.Duration + MyIPPort ips.DynamicIPPort + MyNodeID ids.NodeID + Namespace string + NetworkID uint32 + PeerReadBufferSize int + PeerWriteBufferSize int + PingFrequency time.Duration + RequireValidatorToConnect bool + ResourceTracker tracker.ResourceTracker + TLSConfig *tls.Config + TLSKey crypto.Signer + ThrottlerConfig ThrottlerConfig + UptimeCalculator uptime.Calculator + UptimeMetricFreq time.Duration + UptimeRequirement float64 + Validators validators.Manager + WhitelistedSubnets ids.Set + type DelayConfig struct + InitialReconnectDelay time.Duration + MaxReconnectDelay time.Duration + type HealthConfig struct + MaxPortionSendQueueBytesFull float64 + MaxSendFailRate float64 + MaxTimeSinceMsgReceived time.Duration + MaxTimeSinceMsgSent time.Duration + MinConnectedPeers uint + SendFailRateHalflife time.Duration + type Network interface + Dispatch func() error + ManuallyTrack func(nodeID ids.NodeID, ip ips.IPPort) + NodeUptime func() (UptimeResult, bool) + PeerInfo func(nodeIDs []ids.NodeID) []peer.Info + StartClose func() + WantsConnection func(ids.NodeID) bool + func NewNetwork(config *Config, msgCreator message.Creator, ...) (Network, error) + type PeerListGossipConfig struct + PeerListGossipFreq time.Duration + PeerListNonValidatorGossipSize uint32 + PeerListNumValidatorIPs uint32 + PeerListPeersGossipSize uint32 + PeerListValidatorGossipSize uint32 + type ThrottlerConfig struct + InboundConnUpgradeThrottlerConfig throttling.InboundConnUpgradeThrottlerConfig + InboundMsgThrottlerConfig throttling.InboundMsgThrottlerConfig + MaxInboundConnsPerSec float64 + OutboundMsgThrottlerConfig throttling.MsgByteThrottlerConfig + type TimeoutConfig struct + PingPongTimeout time.Duration + ReadHandshakeTimeout time.Duration + type UptimeResult struct + RewardingStakePercentage float64 + WeightedAveragePercentage float64 v1.0.0-alpha Nov 22, 2022