Versions in this module Expand all Collapse all v0 v0.1.0 Dec 26, 2017 Changes in this version + var AdminConfigUpdateHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var AdminFileMasterGroupHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var AdminFooterUpdateHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var AdminGroupCreateHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var AdminGroupDeleteHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var AdminGroupHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var AdminGroupMemberCreateHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var AdminGroupMemberDeleteHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var AdminGroupMembersHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var AdminHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var AdminHeaderUpdateHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var AdminIllegalNamesUpdateHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var AdminNavUpdateHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var AdminPageMasterGroupHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var AdminUserHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var ChangepassHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var FileCreateHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var FileUpdateHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var FilesHandler = UA(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var ForgotpassHandler = UA(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var LoginHandler = UA(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var LogoutAllHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var PageCreateHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var PageEditHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var PagesHandler = UA(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var ProfileBanHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var ProfileHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var ProfileUnbanHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var ProfileUpdateHandler = A(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var ResetpassHandler = UA(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var SearchHandler = UA(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + var SignupHandler = UA(func(w http.ResponseWriter, r *http.Request, ctx *Context) { ... }) + func A(handler func(w http.ResponseWriter, r *http.Request, ctx *Context)) func(w http.ResponseWriter, r *http.Request) + func ErrForbiddenHandler(w http.ResponseWriter, r *http.Request) + func ErrNotFoundHandler(w http.ResponseWriter, r *http.Request) + func ErrServerHandler(w http.ResponseWriter, r *http.Request) + func FaviconHandler(w http.ResponseWriter, r *http.Request) + func LogoutHandler(w http.ResponseWriter, r *http.Request) + func ScriptHandler(w http.ResponseWriter, r *http.Request) + func SendMail(to string, sub string, body string, config WikiConfig) + func StyleHandler(w http.ResponseWriter, r *http.Request) + func UA(handler func(w http.ResponseWriter, r *http.Request, ctx *Context)) func(w http.ResponseWriter, r *http.Request) + type Context struct + AdminErrMsg string + CSRFToken string + Config WikiConfig + FlashMsg string + FooterLinks []NavLink + HeaderLinks []NavLink + IsAdmin bool + IsUserValid bool + NavSections []NavSection + PageTitle string + SessionID string + UserName string + func ReadContext(sessionID string) Context + func (ctx *Context) Authenticate(username string, passwd string) error + func (ctx *Context) SetFlashMsg(msg string) + func (ctx *Context) ValidateCSRFToken(token string) error + type NavLink struct + Title string + URL string + type NavSection struct + Links []NavLink + Title string + type WikiConfig struct + DataDir string + FromEmail string + SMTPHost string + SMTPPasswd string + SMTPPort string + SMTPUser string + SignupDisabled bool + WikiName string