middlewares

package
v0.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequireBasicAuth

func RequireBasicAuth(auth string, logger *slog.Logger) (gin.HandlerFunc, error)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL