server

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 12 Imported by: 0

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 Enqueuer

type Enqueuer interface {
	Enqueue(ev platform.Event)
}

Enqueuer is the dispatcher surface the server needs.

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) Handler

func (s *Server) Handler() http.Handler

Handler returns the root HTTP handler.

func (*Server) SetReady

func (s *Server) SetReady(ready bool)

SetReady flips the readiness probe; main calls it after startup completes.

Jump to

Keyboard shortcuts

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