Directories
¶
| Path | Synopsis |
|---|---|
|
core/agent/altitude.go
|
core/agent/altitude.go |
|
Package analytics is fabriq's cross-tenant analytics sink: a denormalized read model fed by the shared event stream so operators can run fleet-wide reporting without touching per-tenant databases.
|
Package analytics is fabriq's cross-tenant analytics sink: a denormalized read model fed by the shared event stream so operators can run fleet-wide reporting without touching per-tenant databases. |
|
Package blob is fabriq's byte-plane capability port.
|
Package blob is fabriq's byte-plane capability port. |
|
Package cache is fabriq's first-class caching port: a byte-level, scope-aware cache with per-keyspace freshness policy.
|
Package cache is fabriq's first-class caching port: a byte-level, scope-aware cache with per-keyspace freshness policy. |
|
Package catalog is the control plane for database-per-tenant fabriq (catalog mode; spec 2026-07-03, D1/D2): a small, strongly-consistent registry mapping each tenant to the cluster and database that own its source of truth.
|
Package catalog is the control plane for database-per-tenant fabriq (catalog mode; spec 2026-07-03, D1/D2): a small, strongly-consistent registry mapping each tenant to the cluster and database that own its source of truth. |
|
catalogtest
Package catalogtest is the catalog contract suite: the behaviors every catalog.Catalog implementation must exhibit, run against fabriqtest.FakeCatalog (unit) and the Postgres control store (integration) — the conformance-kit discipline: drift between fake and adapter is a failing test.
|
Package catalogtest is the catalog contract suite: the behaviors every catalog.Catalog implementation must exhibit, run against fabriqtest.FakeCatalog (unit) and the Postgres control store (integration) — the conformance-kit discipline: drift between fake and adapter is a failing test. |
|
Package command is fabriq's only write path for KindAggregate entities.
|
Package command is fabriq's only write path for KindAggregate entities. |
|
Package crypto provides field-level encryption for fabriq (e.g.
|
Package crypto provides field-level encryption for fabriq (e.g. |
|
Package document is the CRDT document plane for KindDocument entities (collaborative documents: page-builder documents, annotations).
|
Package document is the CRDT document plane for KindDocument entities (collaborative documents: page-builder documents, annotations). |
|
Package event defines fabriq's versioned event envelope, its codec, and the upcaster chain that migrates old payload schemas at decode time.
|
Package event defines fabriq's versioned event envelope, its codec, and the upcaster chain that migrates old payload schemas at decode time. |
|
Package fabriqerr holds the canonical shared error values used across fabriq's core packages.
|
Package fabriqerr holds the canonical shared error values used across fabriq's core packages. |
|
Package insights projects opt-in domain entities into each tenant's own fabriq_insights_facts table (per-tenant customer-facing analytics), version- gated and RLS-scoped.
|
Package insights projects opt-in domain entities into each tenant's own fabriq_insights_facts table (per-tenant customer-facing analytics), version- gated and RLS-scoped. |
|
Package livequery is fabriq's maintained-result-set live query engine: a client supplies a filter + sort + limit/cursor and receives a snapshot followed by a live stream of enter/leave/move/update deltas.
|
Package livequery is fabriq's maintained-result-set live query engine: a client supplies a filter + sort + limit/cursor and receives a snapshot followed by a live stream of enter/leave/move/update deltas. |
|
cluster
Package cluster holds the engine-neutral coordination primitives for the sharded live query matcher tier: how data maps to partitions, and how live shards divide those partitions among themselves by rendezvous (HRW) hashing.
|
Package cluster holds the engine-neutral coordination primitives for the sharded live query matcher tier: how data maps to partitions, and how live shards divide those partitions among themselves by rendezvous (HRW) hashing. |
|
match
Package match compiles a query.Where (fabriq's engine-neutral filter AST) into a Go predicate evaluated against a column-keyed map.
|
Package match compiles a query.Where (fabriq's engine-neutral filter AST) into a Go predicate evaluated against a column-keyed map. |
|
Package pathctx carries the tenant's Postgres schema on context.Context for schema-per-tenant "consolidation mode": the adapter stamps SET LOCAL search_path from it per transaction, exactly as core/tenant's id is stamped into SET LOCAL app.tenant_id.
|
Package pathctx carries the tenant's Postgres schema on context.Context for schema-per-tenant "consolidation mode": the adapter stamps SET LOCAL search_path from it per transaction, exactly as core/tenant's id is stamped into SET LOCAL app.tenant_id. |
|
Package projection turns domain events into engine-neutral mutations and (in later phases) drives the consumer loops that apply them.
|
Package projection turns domain events into engine-neutral mutations and (in later phases) drives the consumer loops that apply them. |
|
Package provision is the db-per-tenant onboarding control plane (spec 2026-07-03, D4/D7): an idempotent, resumable state machine that creates a tenant's dedicated database, migrates it to head, and flips the catalog entry active — plus the fleet migration roller that upgrades every tenant database in bounded batches.
|
Package provision is the db-per-tenant onboarding control plane (spec 2026-07-03, D4/D7): an idempotent, resumable state machine that creates a tenant's dedicated database, migrates it to head, and flips the catalog entry active — plus the fleet migration roller that upgrades every tenant database in bounded batches. |
|
Package query defines fabriq's capability ports — explicit, engine-typed interfaces per storage capability — and the Fabric facade that exposes them.
|
Package query defines fabriq's capability ports — explicit, engine-typed interfaces per storage capability — and the Fabric facade that exposes them. |
|
Package registry is fabriq's declarative schema registry.
|
Package registry is fabriq's declarative schema registry. |
|
Package subscribe is fabriq's subscription plane: server-side channel resolution, the subscribe-time authorization gate, the conflating fan-out hub, and the SSE bridge.
|
Package subscribe is fabriq's subscription plane: server-side channel resolution, the subscribe-time authorization gate, the conflating fan-out hub, and the SSE bridge. |
|
Package sweep is the catalog-mode worker engine (spec 2026-07-03, D5): instead of boot-time loops per shard, a bounded pool sweeps the tenant catalog — each ACTIVE tenant's database gets a single maintenance pass (relay the outbox, materialize quiet documents, compact due logs) under that database's own advisory-lock claim, so any number of worker replicas cooperate without duplicate work.
|
Package sweep is the catalog-mode worker engine (spec 2026-07-03, D5): instead of boot-time loops per shard, a bounded pool sweeps the tenant catalog — each ACTIVE tenant's database gets a single maintenance pass (relay the outbox, materialize quiet documents, compact due logs) under that database's own advisory-lock claim, so any number of worker replicas cooperate without duplicate work. |
|
Package tenant carries the tenant identity on context.Context and is the single structural enforcement point for fabriq's tenancy invariant.
|
Package tenant carries the tenant identity on context.Context and is the single structural enforcement point for fabriq's tenancy invariant. |
Click to show internal directories.
Click to hide internal directories.