Documentation
¶
Overview ¶
Package menus provides an abstraction for providing an global menu that covers multiple sites
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Menu ¶
type Menu interface {
Name() string
AltText() string
URL() *url.URL
Children() []Menu
Enabled(auth.Account) bool
}
Menu is an Interface to give the server infos about menuitems
type MenuItem ¶
type MenuItem struct {
ItemName string
ItemAltText string
ItemURL *url.URL
ItemChildren []Menu
RequireAuth Rauth
}
MenuItem is an Implementation of the Menu Interface Enabled returns always true
func (*MenuItem) AltText ¶
AltText is for hovertext or Descriptions. Its can return "". to make templatemaking easier i decided to make an return required.
func (*MenuItem) Children ¶
Children returns the ItemChildren or an empty Menu-Arry if ItemChildren is nil
Click to show internal directories.
Click to hide internal directories.