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 }
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 { GetCurrentNodeType() (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.