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

package admin

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

Index

Package Files

admin.go router.go

Variables

var App = &Admin{
    tableCfg: make(table.GeneratorList),
}

App is the global Admin plugin.

func InitRouter Uses

func InitRouter(prefix string, srv service.List) *context.App

InitRouter initialize the router and return the context.

type Admin Uses

type Admin struct {
    // contains filtered or unexported fields
}

Admin is a GoAdmin plugin.

func NewAdmin Uses

func NewAdmin(tableCfg ...table.GeneratorList) *Admin

NewAdmin return the global Admin plugin.

func (*Admin) AddDisplayFilterLimit Uses

func (admin *Admin) AddDisplayFilterLimit(limit int) *Admin

AddDisplayFilterLimit call types.AddDisplayFilterLimit

func (*Admin) AddDisplayFilterSubstr Uses

func (admin *Admin) AddDisplayFilterSubstr(start int, end int) *Admin

AddDisplayFilterSubstr call types.AddDisplayFilterSubstr

func (*Admin) AddDisplayFilterToLower Uses

func (admin *Admin) AddDisplayFilterToLower() *Admin

AddDisplayFilterToLower call types.AddDisplayFilterToLower

func (*Admin) AddDisplayFilterToTitle Uses

func (admin *Admin) AddDisplayFilterToTitle() *Admin

AddDisplayFilterToTitle call types.AddDisplayFilterToTitle

func (*Admin) AddDisplayFilterToUpper Uses

func (admin *Admin) AddDisplayFilterToUpper() *Admin

AddDisplayFilterToUpper call types.AddDisplayFilterToUpper

func (*Admin) AddDisplayFilterTrimSpace Uses

func (admin *Admin) AddDisplayFilterTrimSpace() *Admin

AddDisplayFilterTrimSpace call types.AddDisplayFilterTrimSpace

func (*Admin) AddDisplayFilterXssFilter Uses

func (admin *Admin) AddDisplayFilterXssFilter() *Admin

AddDisplayFilterXssFilter call types.AddDisplayFilterXssFilter

func (*Admin) AddDisplayFilterXssJsFilter Uses

func (admin *Admin) AddDisplayFilterXssJsFilter() *Admin

AddDisplayFilterXssJsFilter call types.AddDisplayFilterXssJsFilter

func (*Admin) AddGenerator Uses

func (admin *Admin) AddGenerator(key string, g table.Generator) *Admin

AddGenerator add table model generator.

func (*Admin) AddGlobalDisplayProcessFn Uses

func (admin *Admin) AddGlobalDisplayProcessFn(f types.DisplayProcessFn) *Admin

AddGlobalDisplayProcessFn call types.AddGlobalDisplayProcessFn

func (*Admin) GetHandler Uses

func (admin *Admin) GetHandler(url, method string) context.Handlers

GetHandler implements Plugin.GetHandler.

func (*Admin) GetRequest Uses

func (admin *Admin) GetRequest() []context.Path

GetRequest implements Plugin.GetRequest.

func (*Admin) InitPlugin Uses

func (admin *Admin) InitPlugin(services service.List)

InitPlugin implements Plugin.InitPlugin.

func (*Admin) SetCaptcha Uses

func (admin *Admin) SetCaptcha(captcha map[string]string) *Admin

SetCaptcha set captcha driver.

Directories

PathSynopsis
controller
models
modules
modules/captcha
modules/constant
modules/form
modules/guard
modules/paginator
modules/parameter
modules/response
modules/table

Package admin imports 11 packages (graph) and is imported by 17 packages. Updated 2020-01-23. Refresh now. Tools for package owners.