controller

package
v1.0.19 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Overview

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

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

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

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

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

Package controller - 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 Testbed added in v0.8.25

func Testbed(rc *fasthttp.RequestCtx)

func Unauthorized

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

Types

This section is empty.

Directories

Path Synopsis
Package clib - Content managed by Project Forge, see [projectforge.md] for details.
Package clib - Content managed by Project Forge, see [projectforge.md] for details.
Package cmenu - Content managed by Project Forge, see [projectforge.md] for details.
Package cmenu - Content managed by Project Forge, see [projectforge.md] for details.
Package csession - Content managed by Project Forge, see [projectforge.md] for details.
Package csession - Content managed by Project Forge, see [projectforge.md] for details.
Package cutil - Content managed by Project Forge, see [projectforge.md] for details.
Package cutil - Content managed by Project Forge, see [projectforge.md] for details.
Package routes - Content managed by Project Forge, see [projectforge.md] for details.
Package routes - 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