Documentation ¶
Index ¶
- Variables
- func AuthCheck(h echo.Handler) echo.HandlerFunc
- func CustomerDetail(c echo.Context) *modelCustomer.CustomerAndGroup
- func FuncMap() echo.MiddlewareFunc
- func HostChecker() echo.MiddlewareFuncd
- func IPFilter() echo.MiddlewareFuncd
- func JWT(skippers ...func(echo.Context) bool) echo.MiddlewareFuncd
- func NavigateList(ctx echo.Context, m *dbschema.OfficialCommonNavigate, navType string, ...) []*official.NavigateExt
- func OnlyLocal() echo.MiddlewareFuncd
- func RateLimiter() echo.MiddlewareFunc
- func SessionInfo(h echo.Handler) echo.HandlerFunc
- func SetFunc(ctx echo.Context) error
- func SetTheme(theme string) echo.MiddlewareFuncd
- func SkipCurrentURLPermCheck(h echo.Handler) echo.HandlerFunc
- func TrimPathSuffix(ignorePrefixes ...string) echo.MiddlewareFuncd
- func Use(m ...interface{})
- func UseTheme(fn func(echo.Context) *xtemplate.ThemeInfo) echo.MiddlewareFuncd
- type RenderData
- func (r *RenderData) CaptchaForm(args ...interface{}) template.HTML
- func (r *RenderData) CategoryList(limit int, ctype ...string) []*dbschema.OfficialCommonCategory
- func (r *RenderData) Customer() *dbschema.OfficialCustomer
- func (r *RenderData) CustomerDetail() *modelCustomer.CustomerAndGroup
- func (r *RenderData) CustomerNav(parentIDs ...uint) []*official.NavigateExt
- func (r *RenderData) Friendlink(limit int, categoryIds ...uint) []*dbschema.OfficialCommonFriendlink
- func (r *RenderData) FrontendNav(parentIDs ...uint) []*official.NavigateExt
- func (r *RenderData) SQLQuery() *common.SQLQuery
- func (r *RenderData) SQLQueryLimit(offset int, limit int, linkID ...int) *common.SQLQuery
- func (r *RenderData) SubCategoryList(parentId int, limit int, ctype ...string) []*dbschema.OfficialCommonCategory
- func (r *RenderData) TagList(group ...string) []*dbschema.OfficialCommonTags
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Customer = sessdata.Customer AgentLevel = sessdata.AgentLevel URLFor = sessdata.URLFor )
View Source
var DefaultRenderDataWrapper = func(ctx echo.Context, data interface{}) interface{} { return NewRenderData(ctx, data) }
View Source
var Middlewares []interface{}
View Source
var TmplFuncGenerator = mwutils.TmplFuncGenerators{}
Functions ¶
func CustomerDetail ¶
func CustomerDetail(c echo.Context) *modelCustomer.CustomerAndGroup
func FuncMap ¶
func FuncMap() echo.MiddlewareFunc
func HostChecker ¶ added in v0.1.0
func HostChecker() echo.MiddlewareFuncd
func IPFilter ¶
func IPFilter() echo.MiddlewareFuncd
func NavigateList ¶
func NavigateList(ctx echo.Context, m *dbschema.OfficialCommonNavigate, navType string, parentIDs ...uint) []*official.NavigateExt
func OnlyLocal ¶
func OnlyLocal() echo.MiddlewareFuncd
func RateLimiter ¶
func RateLimiter() echo.MiddlewareFunc
func SessionInfo ¶
func SessionInfo(h echo.Handler) echo.HandlerFunc
func SkipCurrentURLPermCheck ¶
func SkipCurrentURLPermCheck(h echo.Handler) echo.HandlerFunc
func TrimPathSuffix ¶
func TrimPathSuffix(ignorePrefixes ...string) echo.MiddlewareFuncd
Types ¶
type RenderData ¶
type RenderData struct { *echo.RenderData // contains filtered or unexported fields }
func NewRenderData ¶
func NewRenderData(ctx echo.Context, data interface{}) *RenderData
func (*RenderData) CaptchaForm ¶
func (r *RenderData) CaptchaForm(args ...interface{}) template.HTML
func (*RenderData) CategoryList ¶
func (r *RenderData) CategoryList(limit int, ctype ...string) []*dbschema.OfficialCommonCategory
func (*RenderData) Customer ¶
func (r *RenderData) Customer() *dbschema.OfficialCustomer
func (*RenderData) CustomerDetail ¶
func (r *RenderData) CustomerDetail() *modelCustomer.CustomerAndGroup
func (*RenderData) CustomerNav ¶
func (r *RenderData) CustomerNav(parentIDs ...uint) []*official.NavigateExt
func (*RenderData) Friendlink ¶
func (r *RenderData) Friendlink(limit int, categoryIds ...uint) []*dbschema.OfficialCommonFriendlink
func (*RenderData) FrontendNav ¶
func (r *RenderData) FrontendNav(parentIDs ...uint) []*official.NavigateExt
func (*RenderData) SQLQuery ¶
func (r *RenderData) SQLQuery() *common.SQLQuery
func (*RenderData) SQLQueryLimit ¶
func (*RenderData) SubCategoryList ¶
func (r *RenderData) SubCategoryList(parentId int, limit int, ctype ...string) []*dbschema.OfficialCommonCategory
func (*RenderData) TagList ¶
func (r *RenderData) TagList(group ...string) []*dbschema.OfficialCommonTags
Source Files ¶
Click to show internal directories.
Click to hide internal directories.