Directories
¶
| Path | Synopsis |
|---|---|
|
Package activity is the business activity log: Append says what happened to a record, in the transaction that changes it; History reads a record's story a page at a time.
|
Package activity is the business activity log: Append says what happened to a record, in the transaction that changes it; History reads a record's story a page at a time. |
|
Package api provides shared plumbing so new endpoints get consistent behavior (problem+json errors, panic recovery, JSON helpers) for free.
|
Package api provides shared plumbing so new endpoints get consistent behavior (problem+json errors, panic recovery, JSON helpers) for free. |
|
Package app assembles an application from modules.
|
Package app assembles an application from modules. |
|
Package authn is who you are: sessions, and the sign-in methods that start them, under /api/roux/auth.
|
Package authn is who you are: sessions, and the sign-in methods that start them, under /api/roux/auth. |
|
apikey
Package apikey is API key authentication: a client sends a key in a header and is signed in for that request, with no session, no cookie and no CSRF token.
|
Package apikey is API key authentication: a client sends a key in a header and is signed in for that request, with no session, no cookie and no CSRF token. |
|
authntest
Package authntest is for tests of code that sits behind authn: a database schema of its own, who mounted on a mux, and browsers that are already signed in as someone with the permissions the test names, without an email in sight.
|
Package authntest is for tests of code that sits behind authn: a database schema of its own, who mounted on a mux, and browsers that are already signed in as someone with the permissions the test names, without an email in sight. |
|
emaillink
Package emaillink is sign-in by an emailed link or typed code.
|
Package emaillink is sign-in by an emailed link or typed code. |
|
jwt
Package jwt is bearer-token sign-in for API-only callers: a client sends "Authorization: Bearer <access token>" from your authorization server and is signed in for that request, with no session, no cookie and no CSRF token.
|
Package jwt is bearer-token sign-in for API-only callers: a client sends "Authorization: Bearer <access token>" from your authorization server and is signed in for that request, with no session, no cookie and no CSRF token. |
|
oidc
Package oidc is sign-in with a provider account: Google, GitHub or any OpenID Connect provider.
|
Package oidc is sign-in with a provider account: Google, GitHub or any OpenID Connect provider. |
|
oidc/oidctest
Package oidctest is a provider for tests of provider sign-in: an OpenID Connect provider (discovery, keys, authorize, token) and a GitHub-shaped one (user, emails) on one http://127.0.0.1 server.
|
Package oidctest is a provider for tests of provider sign-in: an OpenID Connect provider (discovery, keys, authorize, token) and a GitHub-shaped one (user, emails) on one http://127.0.0.1 server. |
|
passkey
Package passkey is sign-in with passkeys (WebAuthn).
|
Package passkey is sign-in with passkeys (WebAuthn). |
|
passkey/passkeytest
Package passkeytest is a software authenticator for testing passkeys: it creates real ES256 credentials from the options a server sends and signs real assertions, the way a browser's virtual authenticator does, and it can be told to misbehave (a wrong origin, a missing user verification, a tampered signature, a counter that goes backwards) so tests can show the server refuses each.
|
Package passkeytest is a software authenticator for testing passkeys: it creates real ES256 credentials from the options a server sends and signs real assertions, the way a browser's virtual authenticator does, and it can be told to misbehave (a wrong origin, a missing user verification, a tampered signature, a counter that goes backwards) so tests can show the server refuses each. |
|
Package authz is roles and permissions: a person has roles, a role grants permissions, and what a person may do is the union of their roles' permissions.
|
Package authz is roles and permissions: a person has roles, a role grants permissions, and what a person may do is the union of their roles' permissions. |
|
Package health provides the kit's standard probe endpoints:
|
Package health provides the kit's standard probe endpoints: |
|
Package money is an amount of money: whole minor units (cents, yen) in an ISO 4217 currency, never a float, so a price is never off by a rounding error.
|
Package money is an amount of money: whole minor units (cents, yen) in an ISO 4217 currency, never a float, so a price is never off by a rounding error. |
|
Package organization is what the browser is told about the organization the app serves: its time zone, its locale, what today is there and when it ends.
|
Package organization is what the browser is told about the organization the app serves: its time zone, its locale, what today is there and when it ends. |
|
Package page is the kit's standardized pagination contract, mirroring jpa-utils: offset-based, 0-indexed pages, one allowlisted sort field plus an always-appended unique tiebreaker, and an envelope of {data, pagination}.
|
Package page is the kit's standardized pagination contract, mirroring jpa-utils: offset-based, 0-indexed pages, one allowlisted sort field plus an always-appended unique tiebreaker, and an envelope of {data, pagination}. |
|
Package pgdb holds the kit's Postgres (pgx) building blocks: connecting, running embedded migrations, and mapping common database errors to problems.
|
Package pgdb holds the kit's Postgres (pgx) building blocks: connecting, running embedded migrations, and mapping common database errors to problems. |
|
Package pgtest gives database tests their own world.
|
Package pgtest gives database tests their own world. |
|
Package problem implements RFC 9457 "Problem Details for HTTP APIs".
|
Package problem implements RFC 9457 "Problem Details for HTTP APIs". |
|
Package rouxtest is for an application's own tests: its features over a fresh database schema with roux's tables, a team of people in roles, a clock the test moves, and browsers signed in as any of them.
|
Package rouxtest is for an application's own tests: its features over a fresh database schema with roux's tables, a team of people in roles, a clock the test moves, and browsers signed in as any of them. |
|
Package spa serves a single-page front end (roux-web, built by Vite) from the same server as the API.
|
Package spa serves a single-page front end (roux-web, built by Vite) from the same server as the API. |
|
Package telemetry wires OpenTelemetry (traces and metrics) into a service.
|
Package telemetry wires OpenTelemetry (traces and metrics) into a service. |
|
Package theme is the owner's look for the app: its name, palette, brand colour, corner shape and fonts, kept in one database row and served at /api/roux/theme.
|
Package theme is the owner's look for the app: its name, palette, brand colour, corner shape and fonts, kept in one database row and served at /api/roux/theme. |
|
Package users is roux's people: the directory, each person's page and history, inviting, renaming, changing roles, making owners, deactivating and reactivating, and signing someone out everywhere.
|
Package users is roux's people: the directory, each person's page and history, inviting, renaming, changing roles, making owners, deactivating and reactivating, and signing someone out everywhere. |
Click to show internal directories.
Click to hide internal directories.