Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
//nolint:containedctx // app-lifetime context threaded through Start via errgroup.WithContext
Ctx context.Context
Stop func()
Cfg config.Config
/* Servers network listeners */
MASTER net.Listener
Custom Custom
}
App is the application's top-level dependency container, wiring together config, data sources and servers built during New and started by Start.
func New ¶
New builds and returns a fully initialized App: it loads config, wires up every configured data source and server, and runs Custom.Init.
func (*App) InitConfig ¶
InitConfig sets up the app's cancellation context and loads its Cfg from config.Init. It is called once by New before any other initializer.
func (*App) InitServers ¶
InitServers initializes this app's configured dependencies.
Click to show internal directories.
Click to hide internal directories.