30 lines
863 B
Go
30 lines
863 B
Go
package plugins
|
|
|
|
// LuaRuntime is a placeholder for the Lua plugin runtime.
|
|
// When gopher-lua is available (go get github.com/yuin/gopher-lua),
|
|
// this will be replaced with a real implementation.
|
|
//
|
|
// For now, the plugin system works with:
|
|
// - plugin.json discovery
|
|
// - template-based node creation
|
|
// - SQL migrations from plugins
|
|
// - enable/disable via CLI
|
|
type LuaRuntime struct{}
|
|
|
|
// NewLuaRuntime creates a Lua runtime (stub).
|
|
func NewLuaRuntime() *LuaRuntime {
|
|
return &LuaRuntime{}
|
|
}
|
|
|
|
// LoadPlugin loads a plugin's main.lua (stub — no-op).
|
|
func (r *LuaRuntime) LoadPlugin(dir string) error {
|
|
// TODO: implement when gopher-lua is available
|
|
return nil
|
|
}
|
|
|
|
// CallHook calls a Lua hook function (stub — no-op).
|
|
func (r *LuaRuntime) CallHook(hook string, args ...interface{}) error {
|
|
// TODO: implement when gopher-lua is available
|
|
return nil
|
|
}
|