handler

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2026 License: BSD-2-Clause Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

type TriggerBuildCheckHandler = libhttp.WithError

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL