Documentation ¶
Index ¶
- Constants
- Variables
- func Callback(namespace, code string, args ...interface{})
- func Init()
- func RegisterCallbackPoint(callback *CallbackPoint)
- func RegisterEntryPoint(entryPoint *EntryPoint)
- func RegisterPlugin(plugin *Plugin)
- func Start()
- func Terminate()
- type CallbackPoint
- type Engine
- type EntryPoint
- type IPlugin
- type Plugin
Constants ¶
View Source
const ( STATUS = iota STATUS_REGISTERED STATUS_INITIALIZED STATUS_STARTED STATUS_TERMINATED )
Variables ¶
View Source
var CallbackPoints = make(map[string]CallbackPoint)
View Source
var EntryPoints = make(map[string]EntryPoint)
Functions ¶
func RegisterCallbackPoint ¶
func RegisterCallbackPoint(callback *CallbackPoint)
func RegisterEntryPoint ¶
func RegisterEntryPoint(entryPoint *EntryPoint)
func RegisterPlugin ¶
func RegisterPlugin(plugin *Plugin)
Types ¶
type CallbackPoint ¶
type Engine ¶
type Engine struct { }
func (*Engine) CallEntryPoint ¶
Call from plugin
func (*Engine) InitPlugin ¶
func (*Engine) RegisterCallback ¶
func (*Engine) StartPlugin ¶
type EntryPoint ¶
type IPlugin ¶
type IPlugin interface { // Register 注册路由 Register(group *gin.RouterGroup) // RouterPath 用户返回注册路由 RouterPath() string }
Plugin 插件接口
Click to show internal directories.
Click to hide internal directories.