Versions in this module Expand all Collapse all v1 v1.8.4 Feb 22, 2022 v1.8.3 Feb 22, 2022 Changes in this version + func TLSConfig(cert tls.Certificate) *tls.Config + type Config struct + AllowPrivateIPs bool + Beacons validators.Set + CompressionEnabled bool + DialerConfig dialer.Config + MaxClockDifference time.Duration + MyIP utils.DynamicIPDesc + MyNodeID ids.ShortID + Namespace string + NetworkID uint32 + PingFrequency time.Duration + RequireValidatorToConnect bool + 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 GossipConfig struct + AppGossipNonValidatorSize uint + AppGossipValidatorSize uint + GossipAcceptedFrontierSize uint + GossipOnAcceptSize uint + type HealthConfig struct + MaxPortionSendQueueBytesFull float64 + MaxSendFailRate float64 + MaxSendFailRateHalflife time.Duration + MaxTimeSinceMsgReceived time.Duration + MaxTimeSinceMsgSent time.Duration + MinConnectedPeers uint + type Network interface + Close func() error + Dispatch func() error + IP func() utils.IPDesc + NodeUptime func() (UptimeResult, bool) + Peers func(nodeIDs []ids.ShortID) []PeerInfo + Track func(ip utils.IPDesc, nodeID ids.ShortID) + TrackIP func(ip utils.IPDesc) + func NewNetwork(config *Config, msgCreator message.Creator, ...) (Network, error) + type PeerInfo struct + Benched []ids.ID + ID string + IP string + LastReceived time.Time + LastSent time.Time + ObservedUptime json.Uint8 + PublicIP string + TrackedSubnets []ids.ID + Version string + type PeerListGossipConfig struct + PeerListGossipFreq time.Duration + PeerListGossipSize uint32 + PeerListSize uint32 + PeerListStakerGossipFraction uint32 + type ThrottlerConfig struct + InboundConnUpgradeThrottlerConfig throttling.InboundConnUpgradeThrottlerConfig + InboundMsgThrottlerConfig throttling.InboundMsgThrottlerConfig + MaxIncomingConnsPerSec float64 + OutboundMsgThrottlerConfig throttling.MsgByteThrottlerConfig + type TimeoutConfig struct + GetVersionTimeout time.Duration + PeerAliasTimeout time.Duration + PingPongTimeout time.Duration + ReadHandshakeTimeout time.Duration + type Upgrader interface + Upgrade func(net.Conn) (ids.ShortID, net.Conn, *x509.Certificate, error) + func NewTLSClientUpgrader(config *tls.Config) Upgrader + func NewTLSServerUpgrader(config *tls.Config) Upgrader + type UptimeResult struct + RewardingStakePercentage float64 + WeightedAveragePercentage float64