admin

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: Apache-2.0 Imports: 11 Imported by: 64

Documentation

Index

Constants

This section is empty.

Variables

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

App is the global Admin plugin.

Functions

func InitRouter

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

InitRouter initialize the router and return the context.

Types

type Admin

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

Admin is a GoAdmin plugin.

func NewAdmin

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

NewAdmin return the global Admin plugin.

func (*Admin) AddDisplayFilterLimit added in v1.0.7

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

AddDisplayFilterLimit call types.AddDisplayFilterLimit

func (*Admin) AddDisplayFilterSubstr added in v1.0.7

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

AddDisplayFilterSubstr call types.AddDisplayFilterSubstr

func (*Admin) AddDisplayFilterToLower added in v1.0.7

func (admin *Admin) AddDisplayFilterToLower() *Admin

AddDisplayFilterToLower call types.AddDisplayFilterToLower

func (*Admin) AddDisplayFilterToTitle added in v1.0.7

func (admin *Admin) AddDisplayFilterToTitle() *Admin

AddDisplayFilterToTitle call types.AddDisplayFilterToTitle

func (*Admin) AddDisplayFilterToUpper added in v1.0.7

func (admin *Admin) AddDisplayFilterToUpper() *Admin

AddDisplayFilterToUpper call types.AddDisplayFilterToUpper

func (*Admin) AddDisplayFilterTrimSpace added in v1.0.7

func (admin *Admin) AddDisplayFilterTrimSpace() *Admin

AddDisplayFilterTrimSpace call types.AddDisplayFilterTrimSpace

func (*Admin) AddDisplayFilterXssFilter added in v1.0.7

func (admin *Admin) AddDisplayFilterXssFilter() *Admin

AddDisplayFilterXssFilter call types.AddDisplayFilterXssFilter

func (*Admin) AddDisplayFilterXssJsFilter added in v1.0.7

func (admin *Admin) AddDisplayFilterXssJsFilter() *Admin

AddDisplayFilterXssJsFilter call types.AddDisplayFilterXssJsFilter

func (*Admin) AddGenerator added in v1.0.0

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

AddGenerator add table model generator.

func (*Admin) AddGlobalDisplayProcessFn added in v1.0.7

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

AddGlobalDisplayProcessFn call types.AddGlobalDisplayProcessFn

func (*Admin) GetHandler

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

GetHandler implements Plugin.GetHandler.

func (*Admin) GetRequest

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

GetRequest implements Plugin.GetRequest.

func (*Admin) InitPlugin

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

InitPlugin implements Plugin.InitPlugin.

func (*Admin) SetCaptcha added in v1.0.8

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

SetCaptcha set captcha driver.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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