package
0.0.2
Repository: https://github.com/dep2p/go-dep2p.git
Documentation: pkg.go.dev

# Functions

NewBandwidthCounter 创建一个新的 BandwidthCounter。 返回值: - *BandwidthCounter: 新创建的带宽计数器实例.

# Structs

BandwidthCounter 跟踪本地节点传输的入站和出站数据。 可用的指标包括总带宽、所有对等节点/协议的带宽,以及按远程对等节点ID和协议ID分段的带宽。.
Stats 表示带宽指标的时间点快照。 TotalIn 和 TotalOut 字段记录累计发送/接收的字节数。 RateIn 和 RateOut 字段记录每秒发送/接收的字节数。.

# Interfaces

Reporter 提供记录和检索指标的方法。.