Documentation
¶
Overview ¶
Package app is the apiserver composition root: it wires the FX modules and owns the application lifecycle. It is internal because it is the only place allowed to depend on Uber FX; the public github.com/.../pkg/apiserver package is a thin, FX-free wrapper over it.
Index ¶
Constants ¶
View Source
const ( // DefaultServerStartTimeout = 30 * time.Second. DefaultServerStartTimeout = 30 * time.Second // DefaultServerStopTimeout is the default timeout for stopping the server. DefaultServerStopTimeout = 30 * time.Second )
Variables ¶
This section is empty.
Functions ¶
func NewConfigModule ¶
func NewConfigModule(settings *config.ServerSettings) fx.Option
NewConfigModule creates a new module for configuration.
func VisualizeError ¶
VisualizeError renders an FX dependency-graph error into a human-readable form. It is exposed so callers outside the composition root can pretty-print startup failures without importing FX directly.
Types ¶
Click to show internal directories.
Click to hide internal directories.