package
Version:
v0.0.0-...-7ec6a99
Opens a new window with list of versions in this module.
Published: Jun 15, 2023
License: Apache-2.0
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
App is an application components lifecycle manager
New create an application lifecycle manager.
Append register interface that are executed on application start and stop.
func (a *App) AppendHook(hook Hook)
AppendHook register callbacks that are executed on application start and stop.
Run executes all OnStart hooks registered with the application's Lifecycle.
Stop gracefully stops the application.
Hook is a pair of start and stop callbacks.
Lifecycle is component lifecycle.
type Option func(o *options)
Option is an application option.
StartTimeout with start timeout.
StopTimeout with stop timeout.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.