Expand description
kasl-server as a library.
The binary is a thin wrapper: configuration, a pool, migrations, then
app::router. Everything else lives here so integration tests can drive
the real router and the real provisioning path instead of a copy that
drifts from what ships.
Modules§
- app
- auth
- Agent authentication: who is allowed to upload, and on whose behalf.
- config
- error
- One error shape for the whole API.
- ingest
- The upload endpoint:
POST /api/v1/days. - model
- The domain the server stores: the shapes behind
migrations/. - provision
- Getting the first agents onto a server that has no admin UI yet.
Functions§
- migrator
- The embedded migrations, applied on startup and by the tests.