Documentation
¶
Overview ¶
Package handler contains the HTTP handlers for the github-build watcher. /trigger publishes a TriggerBuildCheckCommand to Kafka and returns 202; the heavy lifting (Poll cycle) happens in the in-pod command consumer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TriggerBuildCheckHandler ¶
TriggerBuildCheckHandler handles POST /trigger. The handler is intentionally minimal: parse the optional ?force=<bool> query parameter via libparse.ParseBoolDefault (spec 069), build a TriggerBuildCheckCommand carrying the parsed Force value, publish it to Kafka via the injected sender, and return HTTP 202. The Scope field stays reserved-unread (spec Non-goal: per-repo filter UX is a separate spec). All scan-cycle work is owned by the in-pod command consumer.
func NewTriggerBuildCheckHandler ¶
func NewTriggerBuildCheckHandler( sender command.TriggerBuildCheckCommandSender, ) TriggerBuildCheckHandler
NewTriggerBuildCheckHandler returns a handler that publishes a TriggerBuildCheckCommand to Kafka for each /trigger request and returns 202. The sender is the only collaborator.