controller

package
v0.6.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 6, 2022 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

Content managed by Project Forge, see [projectforge.md] for details.

Content managed by Project Forge, see [projectforge.md] for details.

Package controller $PF_IGNORE$

Package controller $PF_IGNORE$

Content managed by Project Forge, see [projectforge.md] for details.

Content managed by Project Forge, see [projectforge.md] for details.

Content managed by Project Forge, see [projectforge.md] for details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Act added in v0.3.15

func Act(key string, rc *fasthttp.RequestCtx, f func(as *app.State, ps *cutil.PageState) (string, error))

func ActSite added in v0.3.15

func ActSite(key string, rc *fasthttp.RequestCtx, f func(as *app.State, ps *cutil.PageState) (string, error))

func ERsp added in v0.3.15

func ERsp(msg string, args ...any) (string, error)

func FlashAndRedir added in v0.3.15

func FlashAndRedir(success bool, msg string, redir string, rc *fasthttp.RequestCtx, ps *cutil.PageState) (string, error)

func Home

func Home(rc *fasthttp.RequestCtx)

func NotFound

func NotFound(rc *fasthttp.RequestCtx)

func Options

func Options(rc *fasthttp.RequestCtx)

func Render added in v0.3.15

func Render(rc *fasthttp.RequestCtx, as *app.State, page layout.Page, ps *cutil.PageState, breadcrumbs ...string) (string, error)

func ReturnToReferrer added in v0.3.15

func ReturnToReferrer(msg string, dflt string, rc *fasthttp.RequestCtx, ps *cutil.PageState) (string, error)

func SetAppState

func SetAppState(a *app.State, logger util.Logger)

func SetSiteState

func SetSiteState(a *app.State, logger util.Logger)

func Site

func Site(rc *fasthttp.RequestCtx)

func Unauthorized

func Unauthorized(rc *fasthttp.RequestCtx, reason string, accounts user.Accounts) func(as *app.State, ps *cutil.PageState) (string, error)

func Welcome

func Welcome(rc *fasthttp.RequestCtx)

func WelcomeResult

func WelcomeResult(rc *fasthttp.RequestCtx)

Types

This section is empty.

Directories

Path Synopsis
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.
Content managed by Project Forge, see [projectforge.md] for details.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL