Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RequireBasicAuth ¶
func RequireHost ¶
func RequireHost(expectedHost string) gin.HandlerFunc
RequireHost only allows the request through if it arrived on the expected hostname. Anything else gets a plain 404 — not 401/403 — so we don't even confirm to a prober that an admin surface exists behind the wrong host.
func RequireProxyAuth ¶
func RequireProxyAuth(devMode bool) gin.HandlerFunc
func SentryErrorHandler ¶
func SentryErrorHandler(logger *slog.Logger) gin.HandlerFunc
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.