Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Component = &app.Component{ Dependencies: app.Components{ logger.Component, }, Constructor: func(container container.Container) error { return container.Provide(New) }, ServeChan: app.ServeChan(func(container container.Container, isServeChan chan struct{}) error { return container.Invoke(func(runner Runner, closer closer.Closer, informer logger.Informer) error { ctx, cancelFunc := context.WithCancel(closer.GetContext()) defer cancelFunc() informer.Info("runner: started") isServeChan <- struct{}{} <-ctx.Done() informer.Info("runner: shutdown") return runner.Close() }) }), }
Functions ¶
This section is empty.
Types ¶
Click to show internal directories.
Click to hide internal directories.