Documentation
¶
Overview ¶
Package system implements some OS related helper functions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureExit ¶
func ConfigureExit(newFunc func(code int))
ConfigureExit allows to overwrite the used os.Exit function. Used in tests.
func CriticalError ¶
func CriticalError(err error)
CriticalError handles a critical error, prints a message and exists the application with a error code.
func Error ¶
func Error(err error)
Error handles an error, prints a message and sends syscall.SIGTERM signal to teardown the application.
func GetSignalChannel ¶
GetSignalChannel returns the signal channel registered for notifications about syscall.SIGINT and syscall.SIGTERM.
func GetStartTime ¶ added in v0.7.8
GetStartTime provides the start time of the application.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.