Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PrintDefaultCommand ¶ added in v1.0.14
func PrintDefaultOptions ¶ added in v1.0.14
func PrintDefaultOptions()
func PrintUsage ¶ added in v1.0.14
func PrintUsage(app App)
Types ¶
type App ¶
type App interface {
// Name app/service name
Name() string
// DisplayName app/service display name
DisplayName() string
// Description app/service description
Description() string
// Version app version
Version() string
// Usage print command line usage
Usage()
// Init initialize the app
Init()
// Reload reload the app
Reload()
// Run run the app
Run()
// Shutdown shutdown the app
Shutdown()
// Wait wait signal for reload or shutdown
Wait()
}
Click to show internal directories.
Click to hide internal directories.