Documentation ¶
Index ¶
- Constants
- func HandleMenuTree(menus []*models.Action, menuItems []*models.MenuItem, log *logging.Logger) []*permpb.MenuItem
- type Config
- type Menu
- func (m *Menu) GetAllCode() map[string]bool
- func (m *Menu) GetMethodName(method, url string) (string, error)
- func (m *Menu) IsDefaultMenu(name string) bool
- func (m *Menu) ListEndpointsWithCode(args ...interface{}) ([]*models.Endpoint, error)
- func (m *Menu) LoadMenusFromDb() error
- func (m *Menu) SaveLocalMenusToDb()
Constants ¶
View Source
const Name = "menu"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Menu ¶
type Menu struct {
// contains filtered or unexported fields
}
func (*Menu) GetAllCode ¶
func (*Menu) IsDefaultMenu ¶
func (*Menu) ListEndpointsWithCode ¶
func (*Menu) LoadMenusFromDb ¶
LoadMenusFromDb load menu, casbin method enforce (method,path)=>code
func (*Menu) SaveLocalMenusToDb ¶
func (m *Menu) SaveLocalMenusToDb()
Click to show internal directories.
Click to hide internal directories.