Documentation ¶
Index ¶
- Constants
- Variables
- func CreateSuperUser(username string, passwd string) error
- func CreateUser(username string, passwd string, email string, isSuperUser bool) error
- func IsMigrationNeeded() bool
- func IsPageTitleValid(title string) error
- func IsUserInFileMasterGroup(username string) bool
- func IsUserInPageMasterGroup(username string) bool
- func Migrate()
- func Migration1()
- func ReadConfig(key string) string
- func ReadFileMasterGroup() string
- func ReadPageMasterGroup() string
- func UpdateUserPasswd(username string, passwd string) error
- func ValidateName(name string) error
- func ValidatePasswd(passwd string) error
- func VerifyPasswd(username string, passwd string) error
- func WriteConfig(key string, val string)
- type PagesSearchResult
Constants ¶
View Source
const ( Version = "version" PageMasterGroup = "page_master_group" FileMasterGroup = "file_master_group" ConfigJSON = "config_json" HeaderLinks = "header_links" IllegalNames = "illegal_names" )
View Source
const ( DefaultConfigJSON = `` /* 157-byte string literal not displayed */ DefaultPageMasterGroup = EverybodyGroup DefaultFileMasterGroup = EverybodyGroup DefaultHeaderLinks = `[ {"Title": "Home", "URL": "/"}, {"Title": "Download", "URL": "http://www.goodoldweb.com/"} ]` DefaultIllegalNames = `["shit", "crap"]` )
View Source
const (
EverybodyGroup = "everybody"
)
View Source
const ModelVersion = 1
Variables ¶
View Source
var (
IndexPage = "Home Page"
)
Functions ¶
func CreateSuperUser ¶
func CreateUser ¶
func IsMigrationNeeded ¶
func IsMigrationNeeded() bool
func IsPageTitleValid ¶
func IsUserInFileMasterGroup ¶
func IsUserInPageMasterGroup ¶
func Migration1 ¶
func Migration1()
func ReadConfig ¶
func ReadFileMasterGroup ¶
func ReadFileMasterGroup() string
func ReadPageMasterGroup ¶
func ReadPageMasterGroup() string
func UpdateUserPasswd ¶
func ValidateName ¶
func ValidatePasswd ¶
func VerifyPasswd ¶
func WriteConfig ¶
Types ¶
type PagesSearchResult ¶
func PageSearch ¶
func PageSearch(terms string) []PagesSearchResult
Click to show internal directories.
Click to hide internal directories.