Luxel v0.1 · Reference · part 12 of 12
API reference (12)
| Export | Kind | Description |
|---|
| ViewAdapter | interface | — |
| ViewEvent | interface | — |
| ViewEventResult | type | — |
| ViewKey | interface | — |
| ViewTokenClaims | interface | — |
| wireView | const | What the decoder needs from a manifest. */ |
@luxel-framework/postgres
Shared stores for several nodes.
| Export | Kind | Description |
|---|
| createPgRateLimiter | function | Token buckets shared by every node. One statement per take: the bucket is refilled for the time elapsed, capped at the capacity, and a token is taken only if one is there; the row lock of the upsert serialises concurrent takes of one key across nodes. / |
| createPgReplayGuard | function | Sprint 10 (ADR-046): spends a key once across every node. One statement per claim: the insert wins, or the existing row is replaced only when it has expired. Expired rows are swept now and then. The key is a hash of the token's nonce, never the token. / |
| createPgRevocationList | function | Sprint 11 (H-PROVENANCE, ADR-048): revoked builds, shared by every node. A row per digest; rows are never removed by the framework (a revoked build stays revoked). / |
| createPgSessionStore | function | — |
| PgPoolLike | interface | — |
| PgQueryable | interface | — |
| PgRateLimiterOptions | interface | — |
| PgReplayGuardOptions | interface | — |
| PgRevocationListOptions | interface | — |
| PgSessionStoreOptions | interface | — |
Edit this page on GitHub