Documentation
¶
Index ¶
- Variables
- func BuildCacheKey(domain string, langCode string, cacheKey string) string
- func ETagCallback(ctx echo.Context, cacheKey string, weak ...bool) error
- func GetLangCodeByPath(path string) string
- func IsCached(ctx echo.Context, cacheKey string, urlWithQueryString ...bool) (bool, error)
- func IsCachedDomain(ctx echo.Context, cacheKey string, urlWithQueryString ...bool) (bool, error)
- func Make(method string, path string, saveAs string, reqRewrite ...func(*http.Request)) error
- func MakeWithSiteURL(siteURL, method string, path string, saveAs string, ...) error
- func Remove(cacheKey string) error
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 GetLangCodeByPath ¶
func IsCachedDomain ¶
func MakeWithSiteURL ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.