Documentation
¶
Overview ¶
Package bootstrap assembles and runs an HTTP application with logging, configuration, telemetry, NATS, and static file serving.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HTTP ¶
func HTTP(name, version string, content gohttp.FileSystem, opts ...application.Option) error
HTTP creates and runs an HTTP application with the standard telemetry, NATS, and HTTP modules. Content may be nil when the application does not serve static files. Additional options are applied after the standard options.
HTTP reads command-line flags from flag.CommandLine and configuration from the environment. When the -config flag is set, the named configuration file is loaded before the environment, allowing environment values to override file values. The application runs until it receives a termination signal or encounters an error.
Types ¶
This section is empty.
Directories
¶
| Path | Synopsis |
|---|---|
|
examples
|
|
|
http
command
|
|
|
spa
command
|
|
|
modules
|
|
|
http
Package http provides an application module backed by a Gorilla Mux HTTP server.
|
Package http provides an application module backed by a Gorilla Mux HTTP server. |
|
nats
Package nats provides an application module that connects to a NATS server and registers the connection with the application's IoC context.
|
Package nats provides an application module that connects to a NATS server and registers the connection with the application's IoC context. |
|
otel
Package otel provides an application module that configures OpenTelemetry metrics and tracing for a bootstrap application.
|
Package otel provides an application module that configures OpenTelemetry metrics and tracing for a bootstrap application. |
|
spa
Package spa provides an application module that falls back to an index file for missing HTML routes in a single-page application.
|
Package spa provides an application module that falls back to an index file for missing HTML routes in a single-page application. |