{"modulePath":"github.com/GoAdminLive/go-admin","version":"v0.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package controller\n\n## Functions\n\n```go\nfunc GetPluginsPageJS(data PluginsPageJSData) template.JS\n```\n\n## Types\n\n```go\ntype Config struct {\n\tConfig     *c.Config\n\tServices   service.List\n\tConnection db.Connection\n\tGenerators table.GeneratorList\n}\n```\n\n```go\ntype Handler struct {\n\t// contains filtered or unexported fields\n}\n```\n\n```go\nfunc New(cfg ...Config) *Handler\n```\n\n```go\nfunc (h *Handler) AddNavButton(btns *types.Buttons)\n```\n\n```go\nfunc (h *Handler) AddOperation(nodes ...context.Node)\n```\n\n```go\nfunc (h *Handler) ApiCreate(ctx *context.Context)\n```\n\n```go\nfunc (h *Handler) ApiCreateForm(ctx *context.Context)\n```\n\n```go\nfunc (h *Handler) ApiDetail(ctx *context.Context)\n```\n\n```go\nfunc (h *Handler) ApiList(ctx *context.Context)\n```\n\n```go\nfunc (h *Handler) ApiUpdate(ctx *context.Context)\n```\n\n```go\nfunc (h *Handler) ApiUpdateForm(ctx *context.Context)\n```\n\n```go\nfunc (h *Handler) Assets(ctx *context.Context)\n```\nAssets return front-end assets according the request path.\n\n```go\nfunc (h *Handler) AssetsTheme(asset, theme string)\n```\n\n```go\nfunc (h *Handler) Auth(ctx *context.Context)\n```\nAuth check the input password and username for authentication.\n\n```go\nfunc (h *Handler) CheckDatabase(ctx *context.Context)\n```\nCheckDatabase check the database connection.\n\n```go\nfunc (h *Handler) Delete(ctx *context.Context)\n```\nDelete delete the row from database.\n\n```go\nfunc (h *Handler) DeleteMenu(ctx *context.Context)\n```\nDeleteMenu delete the menu of given id.\n\n```go\nfunc (h *Handler) EditForm(ctx *context.Context)\n```\n\n```go\nfunc (h *Handler) EditMenu(ctx *context.Context)\n```\nEditMenu edit the menu of given id.\n\n```go\nfunc (h *Handler) Execute(\n\tctx *context.Context, user models.UserModel, panel types.Panel, plugName string,\n\toptions ...template.ExecuteOptions,\n) *bytes.Buffer\n```\n\n```go\nfunc (h *Handler) ExecuteWithBtns(\n\tctx *context.Context, user models.UserModel, panel types.Panel, plugName string, btns types.Buttons,\n\toptions ...template.ExecuteOptions,\n) *bytes.Buffer\n```\n\n```go\nfunc (h *Handler) Export(ctx *context.Context)\n```\nExport export table rows as excel object.\n\n```go\nfunc (h *Handler) GlobalDeferHandler(ctx *context.Context)\n```\nGlobalDeferHandler is a global error handler of admin plugin.\n\n```go\nfunc (h *Handler) HTML(\n\tctx *context.Context, user models.UserModel, panel types.Panel,\n\toptions ...template.ExecuteOptions,\n)\n```\n\n```go\nfunc (h *Handler) HTMLPlug(\n\tctx *context.Context, user models.UserModel, panel types.Panel, plugName string,\n\toptions ...template.ExecuteOptions,\n)\n```\n\n```go\nfunc (h *Handler) Logout(ctx *context.Context)\n```\nLogout delete the cookie.\n\n```go\nfunc (h *Handler) MenuOrder(ctx *context.Context)\n```\nMenuOrder change the order of menu items.\n\n```go\nfunc (h *Handler) NewForm(ctx *context.Context)\n```\nNewForm insert a table row into database.\n\n```go\nfunc (h *Handler) NewMenu(ctx *context.Context)\n```\nNewMenu create a new menu item.\n\n```go\nfunc (h *Handler) Operation(ctx *context.Context)\n```\n\n```go\nfunc (h *Handler) OperationHandler(path string, ctx *context.Context) bool\n```\n\n```go\nfunc (h *Handler) PluginDetail(ctx *context.Context)\n```\n\n```go\nfunc (h *Handler) PluginDownload(ctx *context.Context)\n```\n\n```go\nfunc (h *Handler) PluginStore(ctx *context.Context)\n```\n\n```go\nfunc (h *Handler) Plugins(ctx *context.Context)\n```\n\n```go\nfunc (h *Handler) RecordOperationLog(ctx *context.Context)\n```\nRecordOperationLog record all operation logs, store into database.\n\n```go\nfunc (h *Handler) ServerLogin(ctx *context.Context)\n```\n\n```go\nfunc (h *Handler) SetCaptcha(captcha map[string]string)\n```\n\n```go\nfunc (h *Handler) SetRoutes(r context.RouterMap)\n```\n\n```go\nfunc (h *Handler) ShowDetail(ctx *context.Context)\n```\n\n```go\nfunc (h *Handler) ShowEditMenu(ctx *context.Context)\n```\nShowEditMenu show edit menu page.\n\n```go\nfunc (h *Handler) ShowForm(ctx *context.Context)\n```\nShowForm show form page.\n\n```go\nfunc (h *Handler) ShowInfo(ctx *context.Context)\n```\nShowInfo show info page.\n\n```go\nfunc (h *Handler) ShowInstall(ctx *context.Context)\n```\nShowInstall show install page.\n\n```go\nfunc (h *Handler) ShowLogin(ctx *context.Context)\n```\nShowLogin show the login page.\n\n```go\nfunc (h *Handler) ShowMenu(ctx *context.Context)\n```\nShowMenu show menu info page.\n\n```go\nfunc (h *Handler) ShowNewForm(ctx *context.Context)\n```\nShowNewForm show a new form page.\n\n```go\nfunc (h *Handler) ShowNewMenu(ctx *context.Context)\n```\nShowNewMenu show new menu page.\n\n```go\nfunc (h *Handler) SystemInfo(ctx *context.Context)\n```\n\n```go\nfunc (h *Handler) Update(ctx *context.Context)\n```\nUpdate update the table row of given id.\n\n```go\nfunc (h *Handler) UpdateCfg(cfg Config)\n```\n\n```go\ntype PluginBoxParam struct {\n\tInfo           plugins.Info\n\tInstall        bool\n\tUpgrade        bool\n\tSkip           bool\n\tDownloadReboot bool\n\tName           string\n\tIndexURL       string\n}\n```\n\n```go\nfunc GetPluginBoxParamFromPlug(plug plugins.Plugin) PluginBoxParam\n```\n\n```go\ntype PluginsPageJSData struct {\n\tPrefix string\n}\n```\n\n","path":"github.com/GoAdminLive/go-admin/plugins/admin/controller","name":"controller","synopsis":"","isRedistributable":true}
