Documentation
¶
Index ¶
- type Option
- func AfterStart(fn func(context.Context) error) Option
- func AfterStop(fn func(context.Context) error) Option
- func AppInfo(opts ...app.Option) Option
- func BeforeStart(fn func(context.Context) error) Option
- func BeforeStop(fn func(context.Context) error) Option
- func Context(ctx context.Context) Option
- func FxOptions(opts ...fx.Option) Option
- func StartTimeout(t time.Duration) Option
- func StopTimeout(t time.Duration) Option
- type StartoApp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(o *options)
Option is an application option.
func AfterStart ¶
AfterStart run functions after app starts.
func BeforeStart ¶
BeforeStart run functions before app starts.
func BeforeStop ¶
BeforeStop run functions before app stops.
type StartoApp ¶
type StartoApp[C any] struct { // contains filtered or unexported fields }
StartoApp defines a application components lifecycle manager. [C] defines type of the configuration struct for the application.
func (*StartoApp[C]) Start ¶
Start executes all OnStart hooks registered with the application's Lifecycle.
Click to show internal directories.
Click to hide internal directories.