status

package
v1.7.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 15, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL