Documentation ¶
Index ¶
- Constants
- type Config
- type Librarian
- func (l *Librarian) AddRoot(key string, value root.Root) *Librarian
- func (l *Librarian) GetFirstMenu() Menu
- func (l *Librarian) GetIndexURL() string
- func (l *Librarian) GetSettingPage() table.Generator
- func (l *Librarian) InitMenu()
- func (l *Librarian) InitPlugin(srv service.List)
- func (l *Librarian) IsInstalled() bool
- type Menu
Constants ¶
View Source
const Name = "librarian"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Path string `json:"path",yaml:"path",ini:"path"` Title string `json:"title",yaml:"title",ini:"title"` Theme string `json:"theme",yaml:"theme",ini:"theme"` Prefix string `json:"prefix",yaml:"prefix",ini:"prefix"` BuildMenu bool `json:"build_menu",yaml:"build_menu",ini:"build_menu"` MenuUserRoleID int64 `json:"menu_user_role_id",yaml:"menu_user_role_id",ini:"menu_user_role_id"` }
type Librarian ¶
func NewLibrarian ¶
func NewLibrarianWithConfig ¶
func (*Librarian) GetFirstMenu ¶
func (*Librarian) GetIndexURL ¶
func (*Librarian) GetSettingPage ¶
func (*Librarian) InitPlugin ¶
func (*Librarian) IsInstalled ¶
Click to show internal directories.
Click to hide internal directories.