Documentation ¶
Index ¶
- Variables
- func InitRouter(prefix string, srv service.List) *context.App
- type Admin
- func (admin *Admin) AddDisplayFilterLimit(limit int) *Admin
- func (admin *Admin) AddDisplayFilterSubstr(start int, end int) *Admin
- func (admin *Admin) AddDisplayFilterToLower() *Admin
- func (admin *Admin) AddDisplayFilterToTitle() *Admin
- func (admin *Admin) AddDisplayFilterToUpper() *Admin
- func (admin *Admin) AddDisplayFilterTrimSpace() *Admin
- func (admin *Admin) AddDisplayFilterXssFilter() *Admin
- func (admin *Admin) AddDisplayFilterXssJsFilter() *Admin
- func (admin *Admin) AddGenerator(key string, g table.Generator) *Admin
- func (admin *Admin) AddGlobalDisplayProcessFn(f types.DisplayProcessFn) *Admin
- func (admin *Admin) GetHandler(url, method string) context.Handlers
- func (admin *Admin) GetRequest() []context.Path
- func (admin *Admin) InitPlugin(services service.List)
- func (admin *Admin) SetCaptcha(captcha map[string]string) *Admin
Constants ¶
This section is empty.
Variables ¶
var App = &Admin{ tableCfg: make(table.GeneratorList), }
App is the global Admin plugin.
Functions ¶
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
AddDisplayFilterLimit call types.AddDisplayFilterLimit
func (*Admin) AddDisplayFilterSubstr ¶ added in v1.0.7
AddDisplayFilterSubstr call types.AddDisplayFilterSubstr
func (*Admin) AddDisplayFilterToLower ¶ added in v1.0.7
AddDisplayFilterToLower call types.AddDisplayFilterToLower
func (*Admin) AddDisplayFilterToTitle ¶ added in v1.0.7
AddDisplayFilterToTitle call types.AddDisplayFilterToTitle
func (*Admin) AddDisplayFilterToUpper ¶ added in v1.0.7
AddDisplayFilterToUpper call types.AddDisplayFilterToUpper
func (*Admin) AddDisplayFilterTrimSpace ¶ added in v1.0.7
AddDisplayFilterTrimSpace call types.AddDisplayFilterTrimSpace
func (*Admin) AddDisplayFilterXssFilter ¶ added in v1.0.7
AddDisplayFilterXssFilter call types.AddDisplayFilterXssFilter
func (*Admin) AddDisplayFilterXssJsFilter ¶ added in v1.0.7
AddDisplayFilterXssJsFilter call types.AddDisplayFilterXssJsFilter
func (*Admin) AddGenerator ¶ added in v1.0.0
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 ¶
GetHandler implements Plugin.GetHandler.
func (*Admin) GetRequest ¶
GetRequest implements Plugin.GetRequest.
func (*Admin) InitPlugin ¶
InitPlugin implements Plugin.InitPlugin.