Documentation ¶
Index ¶
- func ContextWithApp(ctx context.Context, app *App) context.Context
- func OnStart(name string, fn HookFunc)
- func WaitExitSignal() os.Signal
- type App
- func AppFromContext(ctx context.Context) *App
- func New(ctx context.Context, cfg *config.Configuration) *App
- func Start(ctx context.Context, service, envName string) (context.Context, *App, error)
- func StartCLI(c *cli.Context) (context.Context, *App, error)
- func StartConfig(ctx context.Context, cfg *config.Configuration) (context.Context, *App, error)
- type HookFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitExitSignal ¶
Types ¶
type App ¶
type App struct { Cfg *config.Configuration // contains filtered or unexported fields }
func AppFromContext ¶
func StartConfig ¶
func (*App) Config ¶
func (app *App) Config() *config.Configuration
func (*App) OnAfterStop ¶
Click to show internal directories.
Click to hide internal directories.