status

package
v1.3.39 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2022 License: GPL-3.0 Imports: 12 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
	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

Jump to

Keyboard shortcuts

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