Loka core
One Go program is the only way in, so login, tokens and workspace access are checked in one place. Map drawing and tile caching stay in proven tools that this program starts or sits in front of.
| Component | What it does |
|---|---|
| Router & security | Every route; sessions, CSRF, API tokens, workspace access, throttling |
| Catalog | Workspaces, stores, layers, groups and styles in SQLite |
| Data import | Reads uploads and outside sources, calls GDAL, registers the result |
| OGC services | WMS, WFS, WMTS, TMS, XYZ and vector tiles |
| Tile cache control | Writes the MapCache configuration, proxies tiles, runs seed and purge jobs |
| Mapfile & render | Writes mapfiles and runs MapServer through FastCGI workers or CGI |
| Styles & symbols | SLD, MIL-STD-2525 and S-52 styles |
| Analysis API | Profile, line of sight, viewshed, slope and contours through loka-analysis |
| 3D tiles & scenes | 3D buildings and the CesiumJS scene page |
| Monitoring | Health and metrics at /api/v2/metrics |
The routes come from internal/server/server.go. architecture/facts/endpoints.json lists them and where they differ from contracts/openapi.yaml.