metrics

package
v1.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2026 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Collect

func Collect(network string, peerMap models.PeerMap, metricPort int) (*models.Metrics, error)

Collect - collects metrics. Per-peer probes run in parallel (bounded by probeConcurrency()) so a slow or unreachable peer does not delay the rest.

func ExtPeerConnStatus added in v1.1.0

func ExtPeerConnStatus(address string, count int) (bool, int64)

func PeerConnStatus added in v0.21.2

func PeerConnStatus(address string, port, counter int) (connected bool, latency int64)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL