Documentation
¶
Overview ¶
Package httpserver builds the pipeline-analytics HTTP handler tree.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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.
Click to show internal directories.
Click to hide internal directories.