Documentation
¶
Overview ¶
Package accesshttp adapts role and menu HTTP requests to the access usecase.
Index ¶
- func Register(group *echo.Group, handler *Handler)
- type Handler
- func (h *Handler) CopyRole(c *echo.Context) error
- func (h *Handler) CreateMenu(c *echo.Context) error
- func (h *Handler) CreateRole(c *echo.Context) error
- func (h *Handler) DeleteMenu(c *echo.Context) error
- func (h *Handler) DeleteRole(c *echo.Context) error
- func (h *Handler) ListAPIGroups(c *echo.Context) error
- func (h *Handler) ListAPIs(c *echo.Context) error
- func (h *Handler) ListMenus(c *echo.Context) error
- func (h *Handler) ListPermissions(c *echo.Context) error
- func (h *Handler) ListRoles(c *echo.Context) error
- func (h *Handler) ReadAPI(c *echo.Context) error
- func (h *Handler) ReadMenu(c *echo.Context) error
- func (h *Handler) UpdateMenu(c *echo.Context) error
- func (h *Handler) UpdateRole(c *echo.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler adapts role and menu HTTP requests to the access usecase.
func (*Handler) CreateMenu ¶
CreateMenu creates a menu.
func (*Handler) CreateRole ¶
CreateRole creates a role.
func (*Handler) DeleteMenu ¶
DeleteMenu deletes a menu.
func (*Handler) DeleteRole ¶
DeleteRole deletes a role.
func (*Handler) ListAPIGroups ¶
ListAPIGroups returns API group names.
func (*Handler) ListPermissions ¶
ListPermissions returns grant metadata.
func (*Handler) UpdateMenu ¶
UpdateMenu updates a menu.
Click to show internal directories.
Click to hide internal directories.