Documentation ¶
Overview ¶
This package implements basic admin functionality. - Admin login, or even register if the site has no admin. - Installation/uninstallation of modules. - Editing of the currently used options document (available under uni.Opts) - A view containing links to installed modules.
Index ¶
- func AB(uni *context.Uni, action string) error
- func AD(uni *context.Uni) error
- func EditConfig(uni *context.Uni) error
- func Index(uni *context.Uni) error
- func Install(uni *context.Uni) error
- func InstallB(uni *context.Uni, mode string) error
- func Login(uni *context.Uni) error
- func Logout(uni *context.Uni) error
- func RegAdmin(uni *context.Uni) error
- func RegFirstAdmin(uni *context.Uni) error
- func RegUser(uni *context.Uni) error
- func SaveConfig(uni *context.Uni) error
- func Uninstall(uni *context.Uni) error
- func Viewnameize(viewname string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EditConfig ¶
func InstallB ¶
Install and Uninstall hooks all have the same signature: func (a *A)(bson.ObjectId) error InstallB handles both installing and uninstalling.
func RegFirstAdmin ¶
Registering yourself as admin is possible if the site has no admin yet.
func SaveConfig ¶
func Viewnameize ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.