Understand Fuego's core architectural components
Fuego's architecture is built around four primary components that manage the lifecycle of a request and the integration with web frameworks:
- Engine: The core of Fuego. It handles requests and responses, manages the
OpenAPIstruct (containing the API description and utilities), and provides a centralized Error Handler. - Server: A standard
net/httpserver implementation used to listen for incoming requests and manage routes, groups, and middlewares. - Adaptors: Integration layers that allow Fuego to be used with third-party web frameworks such as Gin or Echo.
- Context: A generic typed interface representing the state that developers can access and modify within a controller.