Documentation
¶
Index ¶
- 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
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 ¶ added in v0.0.3
func RunGracefullyAndExit(app componego.Application, appMode componego.ApplicationMode)
RunGracefullyAndExit runs the application and stops it gracefully. This function cancels the main context of the application, so the process of stopping the application depends on your application code.
func RunWithContext ¶ added in v0.0.3
func RunWithContext(ctx context.Context, app componego.Application, appMode componego.ApplicationMode) int
RunWithContext runs the application with context and returns the exit code.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.