monitor

package
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: GPL-3.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCrossShardPeerTopicNotifier

func NewCrossShardPeerTopicNotifier(args ArgsCrossShardPeerTopicNotifier) (*crossShardPeerTopicNotifier, error)

NewCrossShardPeerTopicNotifier create a new cross shard peer topic notifier instance

func NewHeartbeatV2Monitor

func NewHeartbeatV2Monitor(args ArgHeartbeatV2Monitor) (*heartbeatV2Monitor, error)

NewHeartbeatV2Monitor creates a new instance of heartbeatV2Monitor

Types

type ArgHeartbeatV2Monitor

type ArgHeartbeatV2Monitor struct {
	Cache                         storage.Cacher
	PubKeyConverter               core.PubkeyConverter
	Marshaller                    marshal.Marshalizer
	MaxDurationPeerUnresponsive   time.Duration
	HideInactiveValidatorInterval time.Duration
	ShardId                       uint32
	PeerTypeProvider              heartbeat.PeerTypeProviderHandler
}

ArgHeartbeatV2Monitor holds the arguments needed to create a new instance of heartbeatV2Monitor

type ArgsCrossShardPeerTopicNotifier

type ArgsCrossShardPeerTopicNotifier struct {
	ShardCoordinator sharding.Coordinator
	PeerShardMapper  heartbeat.PeerShardMapper
}

ArgsCrossShardPeerTopicNotifier represents the arguments for the cross shard peer topic notifier

Jump to

Keyboard shortcuts

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