controller

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: Apache-2.0 Imports: 33 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Assets added in v1.0.0

func Assets(ctx *context.Context)

Assets return front-end assets according the request path.

func Auth

func Auth(ctx *context.Context)

Auth check the input password and username for authentication.

func CheckDatabase

func CheckDatabase(ctx *context.Context)

CheckDatabase check the database connection.

func Delete added in v1.0.0

func Delete(ctx *context.Context)

Delete delete the row from database.

func DeleteMenu

func DeleteMenu(ctx *context.Context)

DeleteMenu delete the menu of given id.

func EditForm

func EditForm(ctx *context.Context)

func EditMenu

func EditMenu(ctx *context.Context)

EditMenu edit the menu of given id.

func Export added in v1.0.0

func Export(ctx *context.Context)

Export export table rows as excel object.

func GlobalDeferHandler

func GlobalDeferHandler(ctx *context.Context)

GlobalDeferHandler is a global error handler of admin plugin.

func Logout

func Logout(ctx *context.Context)

Logout delete the cookie.

func MenuOrder(ctx *context.Context)

MenuOrder change the order of menu items.

func NewForm

func NewForm(ctx *context.Context)

NewForm insert a table row into database.

func NewMenu

func NewMenu(ctx *context.Context)

NewMenu create a new menu item.

func RecordOperationLog

func RecordOperationLog(ctx *context.Context)

RecordOperationLog record all operation logs, store into database.

func SetCaptcha added in v1.0.8

func SetCaptcha(cap map[string]string)

SetConfig set the config.

func SetConfig

func SetConfig(cfg c.Config)

SetConfig set the config.

func SetServices added in v1.1.2

func SetServices(l service.List)

SetServices set the services.

func ShowEditMenu

func ShowEditMenu(ctx *context.Context)

ShowEditMenu show edit menu page.

func ShowForm

func ShowForm(ctx *context.Context)

ShowForm show form page.

func ShowInfo

func ShowInfo(ctx *context.Context)

ShowInfo show info page.

func ShowInstall

func ShowInstall(ctx *context.Context)

ShowInstall show install page.

func ShowLogin

func ShowLogin(ctx *context.Context)

ShowLogin show the login page.

func ShowMenu

func ShowMenu(ctx *context.Context)

ShowMenu show menu info page.

func ShowNewForm

func ShowNewForm(ctx *context.Context)

ShowNewForm show a new form page.

func ShowNewMenu added in v1.0.9

func ShowNewMenu(ctx *context.Context)

ShowNewMenu show new menu page.

func Update added in v1.0.8

func Update(ctx *context.Context)

Update update the table row of given id.

Types

This section is empty.

Jump to

Keyboard shortcuts

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