Documentation
¶
Overview ¶
Package admin owns the /admin/* surface — the operator dashboard for users/orgs/repos/jobs/audit/system management. Every route is gated by RequireSiteAdmin; non-admins receive 404 (existence-leak guard) per the S34 spec.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deps ¶
type Deps struct {
Logger *slog.Logger
Render *render.Renderer
Pool *pgxpool.Pool
Audit *audit.Recorder
// SiteName is rendered into pages; matches Auth.SiteName from config.
SiteName string
// Version is the running shithubd version, surfaced on /admin/system.
Version string
}
Deps wires the admin handler set.
Click to show internal directories.
Click to hide internal directories.