Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct { metric.Meter TransferBytesSent metric.Int64Counter TransferBytesRecv metric.Int64Counter AuthenticationTime metric.Float64Histogram PeerStoreTime metric.Float64Histogram // contains filtered or unexported fields }
func (*Metrics) PeerActivity ¶
PeerActivity increases the active connections
func (*Metrics) PeerConnected ¶
PeerConnected increments the number of connected peers and increments number of idle connections
func (*Metrics) PeerDisconnected ¶
PeerDisconnected decrements the number of connected peers and decrements number of idle or active connections
func (*Metrics) RecordAuthenticationTime ¶ added in v0.30.2
RecordAuthenticationTime measures the time taken for peer authentication
func (*Metrics) RecordPeerStoreTime ¶ added in v0.30.2
RecordPeerStoreTime measures the time to store the peer in map
Click to show internal directories.
Click to hide internal directories.