Help us shape the future of Go! Take the 2026 Go Developer Survey

httpserver

package
v0.32.1 Latest Latest
Warning

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

Go to latest
Published: Sep 18, 2026 License: AGPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package httpserver builds the pipeline-analytics HTTP handler tree.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(deps Deps) http.Handler

New returns the root HTTP handler.

Types

type Deps added in v0.3.0

type Deps struct {
	Registrar      *ingestion.Registrar
	IngestionStore ingestion.Store
	RunStore       ingestion.RunStore
	// Reconciler is called to poll a repo immediately when a Forgejo
	// webhook fires -- see webhooksHandler.forgejo.
	Reconciler ingestion.RepoReconciler
	Metrics    *metrics.Service
	Auth       *auth.Service
	AuthStore  auth.Store
	Settings   *settings.Service
	// GitHubRateLimits reports the rate-limit status last observed for a
	// GitHub token, for GET /api/insights/github-rate-limit. nil is fine --
	// the endpoint just reports every token with no status yet.
	GitHubRateLimits ingestion.RateLimitReporter
	// Version is reported by GET /api/version -- the build's tagged
	// version, or "dev" for a local build.
	Version string
	// Assets is the built frontend (internal/webassets.FS()), served for
	// every path the API doesn't claim, falling back to index.html for the
	// SPA client router.
	Assets fs.FS
}

Deps are New's dependencies.

Jump to

Keyboard shortcuts

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