Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultAdapter adapter.WebFrameWork
Functions ¶
func Register ¶
func Register(ada adapter.WebFrameWork)
Types ¶
type Engine ¶
type Engine struct { PluginList []plugins.Plugin Adapter adapter.WebFrameWork }
Engine is the core components of goAdmin. It has two attributes. PluginList is an array of plugin. Adapter is the adapter of web framework context and goAdmin context. The relationship of adapter and plugin is that the adapter use the plugin which contains routers and controller methods to inject into the framework entity and make it work.
func (*Engine) AddAdapter ¶
func (eng *Engine) AddAdapter(ada adapter.WebFrameWork) *Engine
AddAdapter add the adapter of engine.
func (*Engine) AddPlugins ¶
AddPlugins add the plugins and initialize them.
Click to show internal directories.
Click to hide internal directories.