Skip to main content

Crate character_service

Crate character_service 

Source
Expand description

Character service: CRUD over character sheets, in Postgres. Every request needs a token from the auth service, and only sees its own campaign’s characters.

Re-exports§

pub use store::CharacterStore;

Modules§

admin
Errors, as responses. What whoever runs the service asks of it over HTTP. The character service’s admin API (see edda_server::admin): exporting, importing and deleting a campaign’s characters.
error
routes
The HTTP routes.
store
Characters in Postgres.

Structs§

ApiDoc
The service’s OpenAPI description.
AppState
What the handlers share.

Functions§

app
The service, accepting tokens that verifier vouches for, within limits (how many characters a campaign may keep).
connect
Opens (creating if needed) the database and applies migrations.