Documentation
¶
Index ¶
- Variables
- func Run(app componego.Application, appMode componego.ApplicationMode) int
- func RunAndExit(app componego.Application, appMode componego.ApplicationMode)
- func RunGracefullyAndExit(app componego.Application, appMode componego.ApplicationMode)
- func RunWithContext(ctx context.Context, app componego.Application, ...) int
- type ApplicationCLI
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ToAction = toAction ToApplication = toApplication ToCommand = toCommand )
noinspection ALL
Functions ¶
func Run ¶
func Run(app componego.Application, appMode componego.ApplicationMode) int
Run runs the application and returns the exit code.
func RunAndExit ¶
func RunAndExit(app componego.Application, appMode componego.ApplicationMode)
RunAndExit runs the application and exits the program after stopping the application.
func RunGracefullyAndExit ¶
func RunGracefullyAndExit(app componego.Application, appMode componego.ApplicationMode)
RunGracefullyAndExit runs the application and stops it gracefully.
func RunWithContext ¶
func RunWithContext(ctx context.Context, app componego.Application, appMode componego.ApplicationMode) int
RunWithContext runs the application with context and returns the exit code.
Types ¶
type ApplicationCLI ¶
type ApplicationCLI interface {
componego.Application
ApplicationCLI(cmd *cli.Command)
}
Click to show internal directories.
Click to hide internal directories.