frontend

package
v0.0.0-...-65008d1 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: AGPL-3.0 Imports: 37 Imported by: 13

Documentation

Index

Constants

View Source
const (
	DefaultTemplateDir    = `./template/frontend`      // 前台模板路径默认值
	DefaultAssetsDir      = `./public/assets/frontend` // 前台素材路径默认值
	DefaultAssetsURLPath  = `/public/assets/frontend`  // 前台素材网址路径默认值
	RouteDefaultExtension = `.html`                    // 前台网页扩展名默认值
)

Variables

View Source
var (
	IRegister          = route.IRegister
	MakeHandler        = route.MakeHandler
	WithMeta           = route.MetaHandler
	WithMetaAndRequest = route.MetaHandlerWithRequest
	WithRequest        = route.HandlerWithRequest
	Pre                = route.Pre
	Use                = route.Use
	UseToGroup         = route.UseToGroup
	Register           = route.Register
	RegisterToGroup    = route.RegisterToGroup
	Host               = route.Host
	Apply              = route.Apply
	Prefix             = route.Prefix
)
View Source
var MinCustomerID = 1000
View Source
var TmplCustomParser func(tmpl string, content []byte) []byte

Functions

func AutoBackendPrefix

func AutoBackendPrefix()

func Customer

func FrontendURLFunc

func FrontendURLFunc(c echo.Context) error

func FrontendURLFuncMW

func FrontendURLFuncMW() echo.MiddlewareFunc

func InitWebServer

func InitWebServer()

func MakeRouteRewriter

func MakeRouteRewriter() (cfg middleware.RewriteConfig, err error)

func ResetRouteRewrite

func ResetRouteRewrite() error

func SetPrefix

func SetPrefix(prefix string)

func URLFor

func URLFor(purl string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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