Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler stores all the required information to gracefully shutdown
func GlobalHandler ¶
func GlobalHandler() *Handler
GlobalHandler will return a singleton to be used throughout the lifetime of the application
func (*Handler) Await ¶
Await registers a signal handler for all the passed OS signals, awaits either the system signal to be called or for the context to be done the it will issue a shutdown
Click to show internal directories.
Click to hide internal directories.