Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Commands = map[string]*Command{}
Functions ¶
func OnShutdown ¶
func OnShutdown(f func())
func SetShutdownHandler ¶
func SetShutdownHandler(h ShutdownHandler)
Types ¶
type ShutdownHandler ¶
type ShutdownHandler interface {
OnShutdown(f func())
}
Click to show internal directories.
Click to hide internal directories.