Crate backend

Crate backend 

Source
Expand description

The backend of PermaplanT.

Modulesยง

config
Configuration of the server.
controller
Endpoints of PermaplanT.
db
Database extension and customization.
error
Error of the server and their implementation.
keycloak_api
Keycloak admin API
model
Entities and DTOs used in PermaplanT.
schema
Auto generated by diesel.
service
The service layer of PermaplanT.
sse
Sever Sent Events.

Staticsยง

RESOURCE ๐Ÿ”’
OpenTelemetry resource describing this service.

Functionsยง

cors_configuration ๐Ÿ”’
Create a CORS configuration for the server.
init_metrics ๐Ÿ”’
Initialize OpenTelemetry metrics.
init_trace ๐Ÿ”’
Initialize OpenTelemetry tracing.
main ๐Ÿ”’
Main function.
start_cronjobs ๐Ÿ”’
Start all scheduled jobs that get run in the backend.