Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewMetricsUpdater ¶
func NewMetricsUpdater(args ArgsMetricsUpdater) (*metricsUpdater, error)
NewMetricsUpdater creates a new instance of type metricsUpdater
Types ¶
type ArgsMetricsUpdater ¶
type ArgsMetricsUpdater struct { PeerAuthenticationCacher storage.Cacher HeartbeatMonitor HeartbeatMonitor HeartbeatSenderInfoProvider HeartbeatSenderInfoProvider AppStatusHandler core.AppStatusHandler TimeBetweenConnectionsMetricsUpdate time.Duration EpochNotifier vmcommon.EpochNotifier HeartbeatV1DisableEpoch uint32 }
ArgsMetricsUpdater represents the arguments for the metricsUpdater constructor
type HeartbeatMonitor ¶
type HeartbeatMonitor interface { GetHeartbeats() []data.PubKeyHeartbeat IsInterfaceNil() bool }
HeartbeatMonitor defines the operations that a monitor should implement
type HeartbeatSenderInfoProvider ¶
type HeartbeatSenderInfoProvider interface { GetSenderInfo() (string, core.P2PPeerSubType, error) IsInterfaceNil() bool }
HeartbeatSenderInfoProvider is able to provide correct information about the current sender
Click to show internal directories.
Click to hide internal directories.