Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
// Addr is the HTTP listen address for the ConnectRPC server.
Addr string
// DatabaseURL points at the same Postgres database used by the TypeScript API.
DatabaseURL string
// SessionIdleMinutes mirrors APERIO_SESSION_IDLE_MINUTES from the TypeScript API.
SessionIdleMinutes int
// WebOrigin is the comma-separated browser origin allow-list used for credentialed RPCs.
WebOrigin string
// MetricsToken is the dedicated bearer credential for the aggregate Prometheus endpoint.
MetricsToken string
CerebroWebURL string
MaxOpenConns int
MaxIdleConns int
ConnMaxLifetimeMinutes int
ConnMaxIdleMinutes int
}
Config contains the small runtime surface the Go service needs today. It is intentionally independent from the TypeScript API config so the new backend can be deployed, scaled, and rolled back as its own process.
Click to show internal directories.
Click to hide internal directories.