Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableRestart ¶
func DisableRestart()
DisableRestart disables restart once `RestartApp` is called.
func GenerateVersionFiles ¶
GenerateVersionFiles writes a JSON file with details about current build. Those files are used for upgrading the app.
Types ¶
type PanicHandler ¶
type PanicHandler struct { AppName string Config *config.Config Err *error // Pointer to error of cli action. }
PanicHandler defines HandlePanic which can be used anywhere in defer.
func (*PanicHandler) HandlePanic ¶
func (ph *PanicHandler) HandlePanic()
HandlePanic should be called in defer to ensure restart of app after error.
Click to show internal directories.
Click to hide internal directories.