Documentation ¶
Index ¶
- Variables
- func Register()
- func Set(name string, data *ResourceData)
- type ResourceData
- func (t *ResourceData) AddAuthMiddleware(middle ...echo.MiddlewareFunc) *ResourceData
- func (t *ResourceData) AddMiddleware(middle ...echo.MiddlewareFunc) *ResourceData
- func (t *ResourceData) GetAllMiddleware() []echo.MiddlewareFunc
- func (t *ResourceData) GetAuthMiddleware() []echo.MiddlewareFunc
- func (t *ResourceData) GetMiddleware() []echo.MiddlewareFunc
- func (t *ResourceData) SetOperate(status bool) *ResourceData
- func (t *ResourceData) SetPermission(getPermission middleware.PermissionFun) *ResourceData
Constants ¶
This section is empty.
Variables ¶
View Source
var Resources = map[string]*ResourceData{}
Functions ¶
func Set ¶
func Set(name string, data *ResourceData)
Types ¶
type ResourceData ¶
type ResourceData struct {
// contains filtered or unexported fields
}
func Get ¶
func Get(name string) *ResourceData
func New ¶
func New(name string, path string) *ResourceData
func (*ResourceData) AddAuthMiddleware ¶
func (t *ResourceData) AddAuthMiddleware(middle ...echo.MiddlewareFunc) *ResourceData
func (*ResourceData) AddMiddleware ¶
func (t *ResourceData) AddMiddleware(middle ...echo.MiddlewareFunc) *ResourceData
func (*ResourceData) GetAllMiddleware ¶
func (t *ResourceData) GetAllMiddleware() []echo.MiddlewareFunc
func (*ResourceData) GetAuthMiddleware ¶
func (t *ResourceData) GetAuthMiddleware() []echo.MiddlewareFunc
func (*ResourceData) GetMiddleware ¶
func (t *ResourceData) GetMiddleware() []echo.MiddlewareFunc
func (*ResourceData) SetOperate ¶
func (t *ResourceData) SetOperate(status bool) *ResourceData
func (*ResourceData) SetPermission ¶
func (t *ResourceData) SetPermission(getPermission middleware.PermissionFun) *ResourceData
Click to show internal directories.
Click to hide internal directories.