Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PluginIntf ¶
type PluginIntf interface {
Init(di.AbstractBuilder) // 初始化插件
Sign() string // 插件的唯一标识, 需要开发者搞一个独一无二如 uuid
View() string // 配置视图json信息
Menu(any, int) // 安装插件位置
Install() // 安装插件, 首次扫描后执行.
IsInstall() bool // 安装状态
Uninstall() // 卸载后禁止访问
Upgrade() // 更新插件
SetStatus(bool) // 设置插件状态
Status() bool // 获取状态
GetController() pine.IController // 控制器返回
Prefix() string // 路由前缀
}
Click to show internal directories.
Click to hide internal directories.