Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Muxer *mux.Router = mux.NewRouter()
)
Functions ¶
func AddShutdownHook ¶
func AddShutdownHook(f func())
AddShutdownHook appends a function to the list of functions that will be executed before the application shuts down. Note that these hooks will not be executed in the event of a panic.
func RegisterControlCFunction ¶
func RegisterControlCFunction()
Registers a signal handler to kill the app if Ctrl-C is pressed.
Types ¶
Click to show internal directories.
Click to hide internal directories.