Documentation
¶
Overview ¶
Package bootstrap provides shared application lifecycle logic and bootstrap helpers.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Lifecycle ¶
Lifecycle returns a fx application lifecycle including application start and stop hooks.
func NewServerApp ¶
NewServerApp creates a server application from the given modules.
Types ¶
type ConsoleApp ¶
type ConsoleApp struct {
// contains filtered or unexported fields
}
ConsoleApp runs an app to run as CLI using cobra root command inside a started fx application.
func NewConsoleApp ¶
func NewConsoleApp(modules fx.Option, rootCmd *cobra.Command) *ConsoleApp
func (*ConsoleApp) Run ¶
func (c *ConsoleApp) Run(args []string) error
Click to show internal directories.
Click to hide internal directories.