api-example

command
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 22, 2026 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Command api-example is a minimal TWINOS-style API service on Forge, demonstrating fabriq's data plane: commands, queries, and SSE fetch-then-subscribe. It represents a Go service behind the Rust gateway — it does NOT proxy or terminate anything itself, and its SSE responses flush explicitly so they survive reverse proxies.

Auth: the service verifies JWTs ITSELF (HS256 demo) and stamps the tenant from validated claims. It never trusts a forwarded header.

Environment:

FABRIQ_POSTGRES_DSN  (required)
FABRIQ_REDIS_ADDR    (required for SSE)
FABRIQ_JWT_SECRET    (required)
FABRIQ_HTTP_ADDR     (default :8080)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL