Documentation
¶
Overview ¶
Package web is the driving HTTP adapter: it serves the Templ + htmx UI.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCSRFToken ¶
func NewCSRFToken() string
NewCSRFToken returns a random per-process CSRF token.
Types ¶
type Deps ¶
type Deps struct {
// CSRFToken must accompany every mutating request.
CSRFToken string
Review *review.Service
Settings settings.Store
Hub *live.Hub // live updates for open pages
Servers *servers.Service
ThemesDir string // drop-in Themes; may be empty
Metrics *metrics.Collector // optional: the Settings page's Activity panel
// Dev relaxes the Content-Security-Policy for a live-reload proxy.
Dev bool
}
Deps are what the Server serves from.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.