serve

package
v1.1.10 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2026 License: MIT Imports: 17 Imported by: 0

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.

func Run

func Run(logger *log.Logger, shortName string, appConfig *config.AppConfig) error

Run starts the HTTP server for Caddy forward_auth probes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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