Documentation
¶
Overview ¶
Package app is the composition root for notifycat. It wires config, database, Slack client, event handlers, and HTTP routes into a single runnable server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cleanup ¶
type Cleanup func()
Cleanup releases resources acquired by Wire (database connections, ...).
func Wire ¶
Wire builds the HTTP server, the stale-row cleanup scheduler, and the shared cleanup func from cfg. Callers run the server and the scheduler in separate goroutines and invoke cleanup on shutdown.
Mappings come from the declarative cfg.MappingsFile; the server refuses to start if any entry fails validation (against the per-entry lock cache).
Click to show internal directories.
Click to hide internal directories.