Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CancelChan chan os.Signal
Channel to receive shutdown signal
View Source
var CriticalWaitGroup *sync.WaitGroup
Wait group used in graceful shutdown. Shutdown process will wait for this wait group to be done before canceling the context.
View Source
var Finished chan struct{}
It will be closed when the application has finished the shutting down process
View Source
var Started chan struct{}
It will be closed when shutdown starts the shutting down process
View Source
var WaitGroup *sync.WaitGroup
Wait group used in graceful shutdown. Shutdown will wait for this wait group to be done after canceling the context.
Functions ¶
func HasFinished ¶
func HasFinished() bool
It will return true if the application has finished the shutting down process Used in tests
func Ongoing ¶
func Ongoing() bool
It will return true if the application is shutting down or if the application has finished the shutting down process
func PerformShutdown ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.