internal/

directory
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2026 License: AGPL-3.0

Directories

Path Synopsis
Package auth owns the application's authentication primitives: bcrypt password hashing, CSRF token generation, and the session lifecycle (create / lookup / touch / destroy).
Package auth owns the application's authentication primitives: bcrypt password hashing, CSRF token generation, and the session lifecycle (create / lookup / touch / destroy).
Package clickhouse opens the application's ClickHouse connection pools (admin + readonly) and exposes a golang-migrate driver constructor.
Package clickhouse opens the application's ClickHouse connection pools (admin + readonly) and exposes a golang-migrate driver constructor.
Package idgen is the single source of truth for ID generation across the app.
Package idgen is the single source of truth for ID generation across the app.
Package ingest implements the analytics write path: POST /api/v1/ingest/events → validated batch → in-memory channel → flusher → ClickHouse events_raw_v1.
Package ingest implements the analytics write path: POST /api/v1/ingest/events → validated batch → in-memory channel → flusher → ClickHouse events_raw_v1.
Package maintenance sweeps expired rows out of operational Postgres tables that would otherwise grow monotonically: oauth_codes, oauth_access_tokens, and sessions.
Package maintenance sweeps expired rows out of operational Postgres tables that would otherwise grow monotonically: oauth_codes, oauth_access_tokens, and sessions.
Package mcp exposes the analytics read surface (query + schema) as Model Context Protocol tools behind a single /mcp endpoint.
Package mcp exposes the analytics read surface (query + schema) as Model Context Protocol tools behind a single /mcp endpoint.
Package migrate is the shared migration runner used by both Postgres and ClickHouse.
Package migrate is the shared migration runner used by both Postgres and ClickHouse.
Package oauth implements a hand-rolled OAuth 2.1 authorization server for the analytics API + MCP surfaces.
Package oauth implements a hand-rolled OAuth 2.1 authorization server for the analytics API + MCP surfaces.
Package postgres opens the application's Postgres connection pool and exposes a golang-migrate driver constructor for use by internal/migrate.
Package postgres opens the application's Postgres connection pool and exposes a golang-migrate driver constructor for use by internal/migrate.
db
Package query owns the analytics read path.
Package query owns the analytics read path.
Package static owns the embedded static-asset filesystem.
Package static owns the embedded static-asset filesystem.
Package testhelpers provides shared testcontainers-go setup for PG and CH used by per-package integration tests and the e2e boot test.
Package testhelpers provides shared testcontainers-go setup for PG and CH used by per-package integration tests and the e2e boot test.
templ: version: v0.3.1020
templ: version: v0.3.1020
Package web wires the application's HTTP surface.
Package web wires the application's HTTP surface.

Jump to

Keyboard shortcuts

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