Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
func NewHandler( logger *log.Logger, cfg *settings.Settings, services map[string]auth.ServiceCred, realm string, whitelist *ipwhitelist.Bundle, floodEng *flood.Engine, ) http.Handler
NewHandler builds the HTTP handler used for Caddy forward_auth probes. Only exact "/" and "/auth" paths are accepted (README contract). A single "/" registration is used because Go's "/" pattern is a catch-all; the in-handler path gate rejects every other path with 404. cfg may be nil (tests); whitelist and floodEng may be nil to disable those features.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.