Documentation ¶
Index ¶
- func ApiMiddleware(secretCallback func(id string) string) echo.MiddlewareFunc
- func AuthMiddleware(app string, renewals ...time.Duration) echo.MiddlewareFunc
- func Can(permissions map[string]bool, name string) error
- func OperateMiddleware(UserType string) echo.MiddlewareFunc
- func PermissionMiddleware(permission PermissionFun) echo.MiddlewareFunc
- func VisitorMiddleware(next echo.HandlerFunc) echo.HandlerFunc
- type PermissionFun
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ApiMiddleware ¶
func AuthMiddleware ¶
func OperateMiddleware ¶
func OperateMiddleware(UserType string) echo.MiddlewareFunc
func PermissionMiddleware ¶
func PermissionMiddleware(permission PermissionFun) echo.MiddlewareFunc
func VisitorMiddleware ¶
func VisitorMiddleware(next echo.HandlerFunc) echo.HandlerFunc
Types ¶
Click to show internal directories.
Click to hide internal directories.