Install the required adapters
Configuration functions return a restore function. Defer it in tests and temporary overrides. A production process normally installs each adapter once for its lifetime.
Mount endpoint groups
endpoint.Mux wraps http.ServeMux, rejects duplicate method-and-path pairs before registering the batch, and retains mounted contracts for catalogs and transcription. Use MustMount when invalid route configuration should panic during startup.
Start the server
Separate the listener from the public API
Addr, Host, and Port control where the process listens. server.Description defines what clients and generated gateway documents see: public URLs, version, path prefix, contact details, and default backend routing.
Continue with OpenAPI transcription after the mounted server has a public description.