Documentation
¶
Overview ¶
Package server exposes the HTTP surface: webhook receivers per platform and operational endpoints (health, readiness, metrics, status).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server routes webhook and operational HTTP endpoints.
func New ¶
func New(platforms []platform.Platform, enq Enqueuer, st store.Store, hist *history.History, reg *prometheus.Registry, m *metrics.Metrics, log *slog.Logger) *Server
New builds the HTTP surface: one webhook route per platform plus healthz, readyz, metrics, run history and the status API.
func (*Server) SetAPIToken ¶ added in v0.5.0
SetAPIToken enables the authenticated admin API (/api/v1/trigger). Without a token the endpoint responds 404.
Click to show internal directories.
Click to hide internal directories.