Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NewLister = common.NewLister Paging = common.Paging PagingWithPagination = common.PagingWithPagination PagingWithLister = common.PagingWithLister PagingWithOffsetLister = common.PagingWithOffsetLister PagingWithListerCond = common.PagingWithListerCond PagingWithSelectList = common.PagingWithSelectList PagingWithList = common.PagingWithList PagingWithOffsetSelectList = common.PagingWithOffsetSelectList PagingWithOffsetList = common.PagingWithOffsetList Ok = common.Ok Err = common.Err SendErr = common.SendErr SendFail = common.SendFail SendOk = common.SendOk GetRoleList = func(echo.Context) []*dbschema.NgingUserRole { return nil } )
View Source
var ( WebSocketLogger = log.GetLogger(`websocket`) BackendPrefix string = os.Getenv(`NGING_BACKEND_URL_PREFIX`) //路由前缀(后台) IRegister = route.IRegister WithMeta = route.MetaHandler WithMetaAndRequest = route.MetaHandlerWithRequest WithRequest = route.HandlerWithRequest Apply = route.Apply SetRootGroup = route.SetRootGroup PublicHandler = route.PublicHandler GuestHandler = route.GuestHandler Pre = route.Pre PreToGroup = route.PreToGroup Use = route.Use // UseToGroup “@”符号代表后台网址前缀 UseToGroup = func(groupName string, middlewares ...interface{}) { if groupName != `*` { groupName = `@` + groupName } route.UseToGroup(groupName, middlewares...) } Register = func(fn func(echo.RouteRegister)) { route.RegisterToGroup(`@`, fn) } RegisterToGroup = func(groupName string, fn func(echo.RouteRegister), middlewares ...interface{}) routed.MetaSetter { return route.RegisterToGroup(`@`+groupName, fn, middlewares...) } Host = route.Host )
Functions ¶
func FrontendURLFor ¶
func IsBackendAdmin ¶ added in v5.1.2
func NoticeWriter ¶
Types ¶
This section is empty.
Directories ¶
Path | Synopsis |
---|---|
file
Package file 上传文件管理
|
Package file 上传文件管理 |
Nging is a toolbox for webmasters Copyright (C) 2018-present Wenhui Shen <swh@admpub.com>
|
Nging is a toolbox for webmasters Copyright (C) 2018-present Wenhui Shen <swh@admpub.com> |
Nging is a toolbox for webmasters Copyright (C) 2018-present Wenhui Shen <swh@admpub.com>
|
Nging is a toolbox for webmasters Copyright (C) 2018-present Wenhui Shen <swh@admpub.com> |
Click to show internal directories.
Click to hide internal directories.