backend

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: AGPL-3.0 Imports: 27 Imported by: 38

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultAvatarURL = `/public/assets/backend/images/user_128.png`
	AssetsURLPath    = `/public/assets/backend`
)
View Source
var WebSocketLogger = log.GetLogger(`websocket`).SetLevel(`Info`)

Functions

func AutoCompletePath

func AutoCompletePath(ctx echo.Context) error

func DecryptPassword

func DecryptPassword(c echo.Context, pass string) (string, error)

func FireAutoCompletePath

func FireAutoCompletePath(c echo.Context) (bool, error)

func FireInstalled

func FireInstalled(ctx echo.Context) error

func FrontendURLFor

func FrontendURLFor(purl string, relative ...bool) string

func GlobalFuncMap

func GlobalFuncMap() map[string]interface{}

func IsBackendAdmin

func IsBackendAdmin(c echo.Context) bool

func NoticeWriter

func NoticeWriter(ctx echo.Context, noticeType string) (wOut io.Writer, wErr io.Writer, err error)

func OnAutoCompletePath

func OnAutoCompletePath(fn func(echo.Context) (bool, error))

func OnInstalled

func OnInstalled(cb func(ctx echo.Context) error)

func QrCode added in v0.0.3

func QrCode(ctx echo.Context) error

func URLFor

func URLFor(purl string, relative ...bool) string

func User

func User(ctx echo.Context) *dbschema.NgingUser

Types

This section is empty.

Directories

Path Synopsis
Package oauth2nging implements the OAuth2 protocol for authenticating users through nging.
Package oauth2nging implements the OAuth2 protocol for authenticating users through nging.

Jump to

Keyboard shortcuts

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