Documentation
¶
Overview ¶
Package web provides an embedded admin dashboard for the pbflags feature flag system. It serves server-rendered HTML with htmx for dynamic updates, backed by the admin Store for persistence.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnvConfig ¶ added in v0.5.0
type EnvConfig struct {
Name string // e.g. "production", "staging", "dev"
Color string // CSS color, e.g. "#f87171"
Version string // build version, e.g. "1.2.3"
DevAssetsDir string // if set, read assets from disk for live reload (dev only)
// AllowRuntimeOverrides mirrors the --allow-runtime-overrides
// server flag. When false, every state-changing UI control
// (overrides, sync lock, flag/launch kill, launch ramp) is hidden
// and the corresponding API endpoints return 403. Read-only state
// (lock banner, override badges, kill badges) still renders so
// operators can see what's happening on a locked-down environment.
AllowRuntimeOverrides bool
}
EnvConfig holds environment display settings for the admin UI.
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves the admin web UI.
func NewHandler ¶
NewHandler creates a web UI handler backed by the given store.
Click to show internal directories.
Click to hide internal directories.