Documentation
¶
Overview ¶
Package main — Kora Fieldwork Sample Application
This is the entry point for the Kora Fieldwork app. It starts the Kora engine which loads site configs, bootstraps the database, builds the DocType registry, runs schema migrations, and starts the HTTP server.
The application is defined entirely in YAML config files under config/fieldwork/. No application-specific Go code is needed beyond what the engine provides. Custom business logic can be added via Go hooks (see hooks/ directory).
Directories
¶
| Path | Synopsis |
|---|---|
|
Package api provides shared schema mapping from Kora field types to JSON Schema.
|
Package api provides shared schema mapping from Kora field types to JSON Schema. |
|
Package configstore manages reading and writing DocType configuration to/from the database (_kora_doctype and _kora_field tables).
|
Package configstore manages reading and writing DocType configuration to/from the database (_kora_doctype and _kora_field tables). |
|
Package db provides database abstraction via a Dialect interface.
|
Package db provides database abstraction via a Dialect interface. |
|
Package doctype defines the core types for Kora's config-driven data model.
|
Package doctype defines the core types for Kora's config-driven data model. |
|
Package email provides SMTP email sending.
|
Package email provides SMTP email sending. |
|
Package mcp provides a Model Context Protocol server that auto-generates tools from Kora's doctype registry.
|
Package mcp provides a Model Context Protocol server that auto-generates tools from Kora's doctype registry. |
|
Package net provides the Go-native HTTP server with TLS, multi-site routing, and all production middleware (security headers, CORS, rate limiting, CSRF).
|
Package net provides the Go-native HTTP server with TLS, multi-site routing, and all production middleware (security headers, CORS, rate limiting, CSRF). |
|
Package orm — filter parsing utilities.
|
Package orm — filter parsing utilities. |
|
Package scheduler provides cron-based background job scheduling.
|
Package scheduler provides cron-based background job scheduling. |
|
Package schema manages database schema migration.
|
Package schema manages database schema migration. |
|
Package secret provides an encrypted key-value store for site-specific secrets (AI API keys, SMTP credentials, etc.).
|
Package secret provides an encrypted key-value store for site-specific secrets (AI API keys, SMTP credentials, etc.). |
|
Package site manages site configuration and multi-tenancy.
|
Package site manages site configuration and multi-tenancy. |
|
Package workspace provides the per-site workspace UI (config-driven SPA).
|
Package workspace provides the per-site workspace UI (config-driven SPA). |
Click to show internal directories.
Click to hide internal directories.