Documentation ¶
Index ¶
Constants ¶
View Source
const ( PriorityCloseDatabase = iota // no dependencies PriorityFlushToDatabase // depends on PriorityCloseDatabase PriorityDatabaseHealth PriorityTipselection // depends on PriorityFlushToDatabase, triggered by PriorityReceiveTxWorker, PriorityMilestoneSolidifier PriorityMilestoneSolidifier // depends on PriorityFlushToDatabase, triggered by PriorityReceiveTxWorker, PriorityMilestoneProcessor, PriorityMilestoneSolidifier, PriorityCoordinator, PriorityRestAPI, PriorityWarpSync PriorityMilestoneProcessor // depends on PriorityFlushToDatabase, PriorityMilestoneSolidifier, triggered by PriorityReceiveTxWorker, PriorityMilestoneSolidifier (searchMissingMilestone) PrioritySolidifierGossip // depends on PriorityFlushToDatabase, triggered by PriorityReceiveTxWorker PriorityReceiveTxWorker // triggered by PriorityMessageProcessor PriorityMessageProcessor PriorityPeerGossipProtocolWrite PriorityPeerGossipProtocolRead PriorityGossipService PriorityRequestsProcessor // depends on PriorityGossipService PriorityBroadcastQueue // depends on PriorityGossipService PriorityP2PManager PriorityAutopeering PriorityHeartbeats // depends on PriorityGossipService PriorityWarpSync PrioritySnapshots PriorityMetricsUpdater PriorityDashboard PriorityPoWHandler PriorityRestAPI // depends on PriorityPoWHandler PriorityMetricsPublishers PrioritySpammer // depends on PriorityPoWHandler PriorityFaucet // depends on PriorityPoWHandler PriorityParticipation PriorityStatusReport PriorityMigrator PriorityCoordinator // depends on PriorityPoWHandler PriorityUpdateCheck PriorityPrometheus )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ShutdownHandler ¶ added in v1.2.2
type ShutdownHandler struct { // the logger used to log events. *utils.WrappedLogger // contains filtered or unexported fields }
ShutdownHandler waits until a shutdown signal was received or the node tried to shutdown itself, and shuts down all processes gracefully.
func NewShutdownHandler ¶ added in v1.2.2
func NewShutdownHandler(log *logger.Logger, daemon daemon.Daemon) *ShutdownHandler
NewShutdownHandler creates a new shutdown handler.
func (*ShutdownHandler) Run ¶ added in v1.2.2
func (gs *ShutdownHandler) Run()
Run starts the ShutdownHandler go routine.
func (*ShutdownHandler) SelfShutdown ¶ added in v1.2.2
func (gs *ShutdownHandler) SelfShutdown(msg string)
SelfShutdown can be called in order to instruct the node to shutdown cleanly without receiving any interrupt signals.
Click to show internal directories.
Click to hide internal directories.