Documentation
¶
Overview ¶
Package app wires the server process: it builds every store, service and handler from the configuration (one builder per subsystem), refuses to boot while a dependency production needs is missing, runs the background workers and the HTTP server, and shuts everything down in order. cmd/server is only the process entry point around it.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HealthCheck ¶
func HealthCheck() int
HealthCheck is the `ex healthcheck` subcommand: a single GET against the local /healthz endpoint, returning a process exit code — 0 when the server reports healthy (HTTP 200), 1 otherwise. It is the binary's built-in answer to a Docker HEALTHCHECK on the distroless runtime, which has no shell or wget to probe the endpoint itself.
func SetupLogging ¶
SetupLogging installs the process logger: structured JSON on w everywhere except local dev, so the deployment's log pipeline can parse level/msg/fields instead of scraping text lines. Dev keeps slog's default human-readable output untouched.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App is one wired server process.