Registry / networking / libp2p-go-flow-metrics

libp2p-go-flow-metrics

JSON →
library0.3.0gogounverified

Provides bandwidth and flow metrics for libp2p connections.

go get github.com/libp2p/go-flow-metrics
INSTALL
IMPORT
SIG · LIBP2P-GO-FLOW-MET
L
libp2p-go-flow-metrics
networkinggov0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

flowmetrics
github.com/libp2p/go-flow-metrics

Creates a bandwidth counter and records bytes read.

package main import ( "fmt" "github.com/libp2p/go-flow-metrics" ) func main() { m := flowmetrics.NewBandwidthCounter() m.BytesRead(100) fmt.Println(m.TotalIn()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.3.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
15 hits · last 30 days
node
12
Amazon
1
OpenAI (training)
1
Resources
libp2p-go-flow-metrics — go get libp2p-go-flow-metrics · libregistry