monitor

package
v1.999.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2022 License: GPL-3.0 Imports: 16 Imported by: 0

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