go-admin: github.com/GoAdminGroup/go-admin/plugins/admin/controller Index | Files

package controller

import "github.com/GoAdminGroup/go-admin/plugins/admin/controller"

Index

Package Files

Update.go auth.go common.go delete.go detail.go edit.go handler.go install.go menu.go new.go operation.go show.go

func Assets Uses

func Assets(ctx *context.Context)

Assets return front-end assets according the request path.

func Auth Uses

func Auth(ctx *context.Context)

Auth check the input password and username for authentication.

func CheckDatabase Uses

func CheckDatabase(ctx *context.Context)

CheckDatabase check the database connection.

func Delete Uses

func Delete(ctx *context.Context)

Delete delete the row from database.

func DeleteMenu Uses

func DeleteMenu(ctx *context.Context)

DeleteMenu delete the menu of given id.

func EditForm Uses

func EditForm(ctx *context.Context)

func EditMenu Uses

func EditMenu(ctx *context.Context)

EditMenu edit the menu of given id.

func Export Uses

func Export(ctx *context.Context)

Export export table rows as excel object.

func GlobalDeferHandler Uses

func GlobalDeferHandler(ctx *context.Context)

GlobalDeferHandler is a global error handler of admin plugin.

func Logout Uses

func Logout(ctx *context.Context)

Logout delete the cookie.

func MenuOrder(ctx *context.Context)

MenuOrder change the order of menu items.

func NewForm Uses

func NewForm(ctx *context.Context)

NewForm insert a table row into database.

func NewMenu Uses

func NewMenu(ctx *context.Context)

NewMenu create a new menu item.

func RecordOperationLog Uses

func RecordOperationLog(ctx *context.Context)

RecordOperationLog record all operation logs, store into database.

func SetCaptcha Uses

func SetCaptcha(cap map[string]string)

SetConfig set the config.

func SetConfig Uses

func SetConfig(cfg c.Config)

SetConfig set the config.

func SetServices Uses

func SetServices(l service.List)

SetServices set the services.

func ShowDetail Uses

func ShowDetail(ctx *context.Context)

func ShowEditMenu Uses

func ShowEditMenu(ctx *context.Context)

ShowEditMenu show edit menu page.

func ShowForm Uses

func ShowForm(ctx *context.Context)

ShowForm show form page.

func ShowInfo Uses

func ShowInfo(ctx *context.Context)

ShowInfo show info page.

func ShowInstall Uses

func ShowInstall(ctx *context.Context)

ShowInstall show install page.

func ShowLogin Uses

func ShowLogin(ctx *context.Context)

ShowLogin show the login page.

func ShowMenu Uses

func ShowMenu(ctx *context.Context)

ShowMenu show menu info page.

func ShowNewForm Uses

func ShowNewForm(ctx *context.Context)

ShowNewForm show a new form page.

func ShowNewMenu Uses

func ShowNewMenu(ctx *context.Context)

ShowNewMenu show new menu page.

func Update Uses

func Update(ctx *context.Context)

Update update the table row of given id.

Package controller imports 35 packages (graph) and is imported by 2 packages. Updated 2020-01-24. Refresh now. Tools for package owners.