Documentation
¶
Index ¶
- func DynamicTemplateHandler(templateName string, populateFunc dynamicPopulateFunc) echo.HandlerFunc
- func LoggerMiddleware(excl []string) echo.MiddlewareFunc
- func PwshTemplateHandler(templateName string, p string) echo.HandlerFunc
- func StaticAppHandler(c echo.Context) error
- func StaticTemplateHandler(templateName string) echo.HandlerFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DynamicTemplateHandler ¶
func DynamicTemplateHandler(templateName string, populateFunc dynamicPopulateFunc) echo.HandlerFunc
closure generator returns echo.HandlerFunc uses populateFunc to populate template with template name (incl. ending) opts are { args: []string{} }
func LoggerMiddleware ¶
func LoggerMiddleware(excl []string) echo.MiddlewareFunc
param excl []string excluded paths (paths we don't log)
func PwshTemplateHandler ¶
func PwshTemplateHandler(templateName string, p string) echo.HandlerFunc
func StaticAppHandler ¶
StaticAppHandler godoc
@Summary special handler for user-facing static files so file endings are not shown in the URI
func StaticTemplateHandler ¶
func StaticTemplateHandler(templateName string) echo.HandlerFunc
static templates
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.