Documentation
¶
Overview ¶
Package web serves Taskronin's loopback browser interface.
Index ¶
Constants ¶
View Source
const ( SessionCookie = "tr_session" HTMXAsset = "htmx-2.0.11.min.js" HTMXSHA256 = "d6fdc75f204e6bdefa99b69bf1e6d4ac69b8a364f77929f45c13476b4000f717" HTMXSize = 52182 CSP = "" /* 152-byte string literal not displayed */ )
Browser protocol constants and the pinned, embedded htmx asset.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
Svc *service.Service
Clock clock.Clock
Zone civil.Zone
WeekStart time.Weekday
Listen string
Logger *slog.Logger
// Observe reports the matched pattern and authenticated actor for access logs.
Observe func(context.Context, string, domain.Actor)
}
Options supplies the service and configuration for the bound loopback listener.
Click to show internal directories.
Click to hide internal directories.