resources

package
v0.0.4-beta Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 4, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Resources = map[string]*ResourceData{}

Functions

func Register

func Register()

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL