middleware

package
v0.0.0-...-ac808a3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PageSEO

func PageSEO(skipper func(r *http.Request) bool) func(next http.Handler) http.Handler

func SelectHybridPage

func SelectHybridPage(config SelectHybridPageConfig) func(next http.Handler) http.Handler

func SelectSite

func SelectSite(config SelectSiteConfig) func(next http.Handler) http.Handler

Types

type SelectHybridPageConfig

type SelectHybridPageConfig struct {
	Skipper           func(r *http.Request) bool
	DecoratorStrategy cmshttp.DecoratorStrategy
	PageService       cms.PageService
	RouteName         func(r *http.Request) string
	PageNotFound      func(next http.Handler) http.Handler
	Logger            *slog.Logger
}

type SelectSiteConfig

type SelectSiteConfig struct {
	Skipper           func(r *http.Request) bool
	DecoratorStrategy cmshttp.DecoratorStrategy
	Selectors         []cmshttp.SiteSelector
	SelectorType      func(r *http.Request) cmshttp.SelectorType
	SiteNotFound      func(next http.Handler) http.Handler
	Logger            *slog.Logger
}

Jump to

Keyboard shortcuts

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