mirror of
https://github.com/tiennm99/miti99bot.git
synced 2026-09-13 14:20:10 +00:00
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.
11 lines
455 B
Go
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{}
|