Documentation ¶
Overview ¶
Package controller - Content managed by Project Forge, see [projectforge.md] for details.
Index ¶
- func Act(key string, w http.ResponseWriter, r *http.Request, f ActFn)
- func ActSite(key string, w http.ResponseWriter, r *http.Request, ...)
- func ERsp(msg string, args ...any) (string, error)
- func FlashAndRedir(success bool, msg string, redir string, ps *cutil.PageState) (string, error)
- func Home(w http.ResponseWriter, r *http.Request)
- func NotFoundAction(w http.ResponseWriter, r *http.Request)
- func NotFoundResponse(w http.ResponseWriter, r *http.Request) func(as *app.State, ps *cutil.PageState) (string, error)
- func Options(w http.ResponseWriter, _ *http.Request)
- func Render(r *http.Request, as *app.State, page layout.Page, ps *cutil.PageState, ...) (string, error)
- func ReturnToReferrer(msg string, dflt string, ps *cutil.PageState) (string, error)
- func SetAppState(a *app.State, logger util.Logger) error
- func SetSiteState(a *app.State, logger util.Logger) error
- func Site(w http.ResponseWriter, r *http.Request)
- func Testbed(w http.ResponseWriter, r *http.Request)
- func Unauthorized(w http.ResponseWriter, r *http.Request, reason string) func(as *app.State, ps *cutil.PageState) (string, error)
- type ActFn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FlashAndRedir ¶ added in v0.3.15
func NotFoundAction ¶ added in v1.1.0
func NotFoundAction(w http.ResponseWriter, r *http.Request)
func NotFoundResponse ¶ added in v1.1.0
func ReturnToReferrer ¶ added in v0.3.15
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.