xhtml

package
v0.0.0-...-2091b86 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2025 License: AGPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultSaveDir string = `html`
View Source
var ErrGenerateHTML = errors.New(`failed to generate html`)
View Source
var ErrNoSetValidateDomain = errors.New(`the DomainValidator function has not been set`)

Functions

func BuildCacheKey

func BuildCacheKey(domain string, langCode string, cacheKey string) string

func ETagCallback

func ETagCallback(ctx echo.Context, cacheKey string, weak ...bool) error

func GetLangCodeByPath

func GetLangCodeByPath(path string) string

func IsCached

func IsCached(ctx echo.Context, cacheKey string, urlWithQueryString ...bool) (bool, error)

func IsCachedDomain

func IsCachedDomain(ctx echo.Context, cacheKey string, urlWithQueryString ...bool) (bool, error)

func Make

func Make(method string, path string, saveAs string, reqRewrite ...func(*http.Request)) error

func MakeWithSiteURL

func MakeWithSiteURL(siteURL, method string, path string, saveAs string, reqRewrite ...func(*http.Request)) error

func Remove

func Remove(cacheKey string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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