Documentation ¶
Index ¶
- func Execute(ctx *context.Context, conn db.Connection, navButtons types.Buttons, ...) *bytes.Buffer
- func GetHandler(app *context.App) context.HandlerMap
- type Base
- func (b *Base) ExecuteTmpl(ctx *context.Context, panel types.Panel, animation ...bool) *bytes.Buffer
- func (b *Base) GetHandler() context.HandlerMap
- func (b *Base) HTML(ctx *context.Context, panel types.Panel, animation ...bool)
- func (b *Base) HTMLFile(ctx *context.Context, path string, data map[string]interface{}, ...)
- func (b *Base) HTMLFiles(ctx *context.Context, data map[string]interface{}, files []string, ...)
- func (b *Base) InitBase(srv service.List)
- func (b *Base) Name() string
- func (b *Base) Prefix() string
- type Plugin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetHandler ¶
func GetHandler(app *context.App) context.HandlerMap
GetHandler is a help method for Plugin GetHandler.
Types ¶
type Base ¶
type Base struct { App *context.App Services service.List Conn db.Connection UI *ui.Service PlugName string URLPrefix string }
func (*Base) ExecuteTmpl ¶
func (*Base) GetHandler ¶
func (b *Base) GetHandler() context.HandlerMap
type Plugin ¶
type Plugin interface { GetHandler() context.HandlerMap InitPlugin(services service.List) Name() string Prefix() string }
Plugin as one of the key components of goAdmin has three methods. GetRequest return all the path registered in the plugin. GetHandler according the url and method return the corresponding handler. InitPlugin init the plugin which do something like init the database and set the config and register the routes. The Plugin must implement the three methods.
func LoadFromPlugin ¶
Click to show internal directories.
Click to hide internal directories.