Directories
¶
| Path | Synopsis |
|---|---|
|
clients
|
|
|
js
Package jsclient embeds the JavaScript client's sources, so the functions runner can give each function a real client as ctx.db.
|
Package jsclient embeds the JavaScript client's sources, so the functions runner can give each function a real client as ctx.db. |
|
cmd
|
|
|
backd
command
Command backd serves a config-driven REST API over MongoDB.
|
Command backd serves a config-driven REST API over MongoDB. |
|
internal
|
|
|
adminui
Package adminui serves the admin web interface under /_ui/.
|
Package adminui serves the admin web interface under /_ui/. |
|
auth
Package auth holds backd's identity model: users, their sign-in identities and password handling.
|
Package auth holds backd's identity model: users, their sign-in identities and password handling. |
|
auth/authtest
Package authtest provides an in-memory auth.Store for tests.
|
Package authtest provides an in-memory auth.Store for tests. |
|
cron
Package cron parses five-field cron expressions and computes their schedule, in UTC or in a time zone.
|
Package cron parses five-field cron expressions and computes their schedule, in UTC or in a time zone. |
|
egress
Package egress runs backd's egress role: the only way a function process reaches the network.
|
Package egress runs backd's egress role: the only way a function process reaches the network. |
|
email
Package email holds what backd knows about the emails it asks a realm's delivery function to send: the kinds, the templates (loaded from <realm>/email/ into memory at startup and rendered per message), and the shape of the message handed to the function.
|
Package email holds what backd knows about the emails it asks a realm's delivery function to send: the kinds, the templates (loaded from <realm>/email/ into memory at startup and rendered per message), and the shape of the message handed to the function. |
|
executor
Package executor runs server-side functions: `backd executor` is a supervisor that runs each invocation in its own Deno process, with only the function's permissions and limits, and returns its output.
|
Package executor runs server-side functions: `backd executor` is a supervisor that runs each invocation in its own Deno process, with only the function's permissions and limits, and returns its output. |
|
functions
Package functions builds server-side functions: `backd functions build` bundles each function of a database's Deno project into one file with `deno bundle`, and records the bundles in a manifest that startup checks.
|
Package functions builds server-side functions: `backd functions build` bundles each function of a database's Deno project into one file with `deno bundle`, and records the bundles in a manifest that startup checks. |
|
httpapi
Package httpapi is backd's HTTP layer: routing, middleware, error envelope, the generic document handlers and the /_auth endpoints.
|
Package httpapi is backd's HTTP layer: routing, middleware, error envelope, the generic document handlers and the /_auth endpoints. |
|
imaging
Package imaging turns one image into resized copies, safely: pure Go (no cgo, no external library), the pixel count checked from the header before anything is decoded, the orientation flag applied, a time limit per image, and output that never carries metadata.
|
Package imaging turns one image into resized copies, safely: pure Go (no cgo, no external library), the pixel count checked from the header before anything is decoded, the orientation flag applied, a time limit per image, and output that never carries metadata. |
|
jsonnum
Package jsonnum converts json.Number values into concrete Go numbers.
|
Package jsonnum converts json.Number values into concrete Go numbers. |
|
metrics
Package metrics is backd's Prometheus instrumentation (design/metrics.md).
|
Package metrics is backd's Prometheus instrumentation (design/metrics.md). |
|
mongodb
Package mongodb holds everything MongoDB-specific: the $jsonSchema validator translation, the repository implementation and the provisioner.
|
Package mongodb holds everything MongoDB-specific: the $jsonSchema validator translation, the repository implementation and the provisioner. |
|
query
Package query parses and checks the list query language (where, order_by) against a collection's schema, producing backend-neutral storage conditions.
|
Package query parses and checks the list query language (where, order_by) against a collection's schema, producing backend-neutral storage conditions. |
|
registry
Package registry loads the realm/database/collection tree from CONFIG_DIR into an immutable, validated registry used by routing, validation and provisioning.
|
Package registry loads the realm/database/collection tree from CONFIG_DIR into an immutable, validated registry used by routing, validation and provisioning. |
|
rules
Package rules checks and compiles a collection's rules (the `rules:` section of its collection.yaml): expr-lang expressions deciding, per operation, whether a caller may act on a whole document.
|
Package rules checks and compiles a collection's rules (the `rules:` section of its collection.yaml): expr-lang expressions deciding, per operation, whether a caller may act on a whole document. |
|
rulestest
Package rulestest runs the fixtures of `backd rules test`: it decides who may read, create, update and delete which documents of a collection, with the collection's real rules (the `rules:` of its collection.yaml) and schema.json and no database, and compares the decisions with what the fixture expects.
|
Package rulestest runs the fixtures of `backd rules test`: it decides who may read, create, update and delete which documents of a collection, with the collection's real rules (the `rules:` of its collection.yaml) and schema.json and no database, and compares the decisions with what the fixture expects. |
|
settings
Package settings reads backd's runtime configuration from environment variables.
|
Package settings reads backd's runtime configuration from environment variables. |
|
storage
Package storage defines the backend-neutral data access contract.
|
Package storage defines the backend-neutral data access contract. |
|
storage/storagetest
Package storagetest is a small in-memory S3 server for tests that need an object storage but not a real one: path-style addressing, the operations backd uses (bucket HEAD, PUT, GET with Range, HEAD, DELETE, ListObjectsV2) and the signed SHA-256 check a PUT carries.
|
Package storagetest is a small in-memory S3 server for tests that need an object storage but not a real one: path-style addressing, the operations backd uses (bucket HEAD, PUT, GET with Range, HEAD, DELETE, ListObjectsV2) and the signed SHA-256 check a PUT carries. |
|
templates
Package templates writes commented starter files for realms and databases into CONFIG_DIR (`backd template`).
|
Package templates writes commented starter files for realms and databases into CONFIG_DIR (`backd template`). |
Click to show internal directories.
Click to hide internal directories.