Documentation
¶
Index ¶
- func LoadAppLib(app *typex.Application, e typex.RuleX)
- func NewAppStack(re typex.RuleX) typex.XAppStack
- func ValidateLuaSyntax(bytes []byte) error
- type AppStack
- func (as *AppStack) GetApp(uuid string) *typex.Application
- func (as *AppStack) GetRuleX() typex.RuleX
- func (as *AppStack) ListApp() []*typex.Application
- func (as *AppStack) LoadApp(app *typex.Application) error
- func (as *AppStack) RemoveApp(uuid string) error
- func (as *AppStack) StartApp(uuid string) error
- func (as *AppStack) Stop()
- func (as *AppStack) StopApp(uuid string) error
- func (as *AppStack) UpdateApp(app typex.Application) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadAppLib ¶
func LoadAppLib(app *typex.Application, e typex.RuleX)
* * 加载app库函数, 注意这里的库函数和规则引擎的并不是完全一样的,有一些差别 *
Types ¶
type AppStack ¶
type AppStack struct {
// contains filtered or unexported fields
}
* * 管理器 *
func (*AppStack) LoadApp ¶
func (as *AppStack) LoadApp(app *typex.Application) error
* * 加载本地文件到lua虚拟机, 但是并不执行 *
func (*AppStack) StartApp ¶
* 此时才是真正的启动入口: * 启动 function Main(args) --do-some-thing-- return 0 end *
Click to show internal directories.
Click to hide internal directories.