package
1.0.0-rc.3
Repository: https://github.com/iotaledger/hive.go.git
Documentation: pkg.go.dev

# Functions

AppSelfShutdownCaller is used to signal a app self shutdown caused by an error.
NewShutdownHandler creates a new shutdown handler.
WithSelfShutdownLogsEnabled defines whether to store self-shutdown events to a log file.
WithSelfShutdownLogsFilePath defines the file path to the self-shutdown log.
WithStopGracePeriod defines the the maximum time to wait for background processes to finish during shutdown before terminating the app.

# Structs

Events holds Shutdown related events.
ShutdownHandler waits until a shutdown signal was received or the app tried to shutdown itself, and shuts down all processes gracefully.