Documentation ¶
Index ¶
- Constants
- func AddGroupNamer(namers ...func(string) string)
- func Apply()
- func Clear()
- func GuestHandler(h interface{}, meta ...echo.H) echo.Handler
- func HandlerWithRequest(handler interface{}, requests interface{}, methods ...string) echo.Handler
- func Host(hostName string, middlewares ...interface{}) route.Hoster
- func IRegister() route.IRegister
- func Logger() logger.Logger
- func MakeHandler(handler interface{}, requests ...interface{}) echo.Handler
- func MetaHandler(handler interface{}, m echo.H, requests ...interface{}) echo.Handler
- func MetaHandlerWithRequest(handler interface{}, m echo.H, requests interface{}, methods ...string) echo.Handler
- func PermGuestKV() (string, string)
- func PermPublicKV() (string, string)
- func Pre(middlewares ...interface{})
- func PreToGroup(groupName string, middlewares ...interface{})
- func Prefix() string
- func PublicHandler(h interface{}, meta ...echo.H) echo.Handler
- func Register(fn func(echo.RouteRegister))
- func RegisterToGroup(groupName string, fn func(echo.RouteRegister), middlewares ...interface{}) route.MetaSetter
- func Routes() []*echo.Route
- func SetGroupMetaPermissionGuest(s GroupSetMetaKV) *echo.Group
- func SetGroupMetaPermissionPublic(s GroupSetMetaKV) *echo.Group
- func SetMetaPermissionGuest(s RouteSetMetaKV) echo.IRouter
- func SetMetaPermissionPublic(s RouteSetMetaKV) echo.IRouter
- func SetPrefix(prefix string)
- func SetRootGroup(groupName string)
- func Use(middlewares ...interface{})
- func UseToGroup(groupName string, middlewares ...interface{})
- type GroupSetMetaKV
- type RouteSetMetaKV
Constants ¶
View Source
const ( MetaKeyPermission = `permission` PermissionPublic = `public` // 所有登录用户 PermissionGuest = `guest` // 匿名 )
Variables ¶
This section is empty.
Functions ¶
func AddGroupNamer ¶
func HandlerWithRequest ¶
func MakeHandler ¶
func MetaHandler ¶
func MetaHandlerWithRequest ¶
func PermGuestKV ¶
func PermPublicKV ¶
func PreToGroup ¶
func PreToGroup(groupName string, middlewares ...interface{})
func Register ¶
func Register(fn func(echo.RouteRegister))
func RegisterToGroup ¶
func RegisterToGroup(groupName string, fn func(echo.RouteRegister), middlewares ...interface{}) route.MetaSetter
func SetGroupMetaPermissionGuest ¶
func SetGroupMetaPermissionGuest(s GroupSetMetaKV) *echo.Group
func SetGroupMetaPermissionPublic ¶
func SetGroupMetaPermissionPublic(s GroupSetMetaKV) *echo.Group
func SetMetaPermissionGuest ¶
func SetMetaPermissionGuest(s RouteSetMetaKV) echo.IRouter
func SetMetaPermissionPublic ¶
func SetMetaPermissionPublic(s RouteSetMetaKV) echo.IRouter
func SetRootGroup ¶
func SetRootGroup(groupName string)
func UseToGroup ¶
func UseToGroup(groupName string, middlewares ...interface{})
UseToGroup “@”符号代表后台网址前缀
Types ¶
type GroupSetMetaKV ¶
type RouteSetMetaKV ¶
Click to show internal directories.
Click to hide internal directories.