Files
miti99bot/internal/modules/modules.go
T
tiennm99 35ad4cb997 feat(server,modules): bootstrap server and module framework
Implements Phases 02 (partial) and 03 of the go-port-cloud-run plan.
Introduces module framework with per-module KV prefix isolation,
health check endpoint, request timeout protection, and comprehensive
test coverage. Cloud Run deployment deferred to Phase 01.

Security hardening: constant-time secret comparison, cron auth bridge,
and secrets stripped from dependency environment exports. Includes
Dockerfile, GitHub CI workflow (vet + race + build), and integration
tests for module lifecycle.
2026-05-08 23:27:12 +07:00

11 lines
455 B
Go

package modules
// Factories is the static module catalog. Each phase that introduces a module
// adds an entry here. Phase 03 ships an empty catalog; Phase 05 onwards
// populates it.
//
// Spec deviation: Phase 03 plan defined a `[]Factory` slice. A map keyed by
// module name is required for Build() to honor the MODULES env CSV without a
// linear scan, and prevents duplicate module names at compile-load time.
var Factories = map[string]Factory{}