Documentation
¶
Index ¶
- func ConvertGoValueToLuaValue(input interface{}) lua.LValue
- func ConvertGoValuesToLuaValues(inputs []interface{}) []lua.LValue
- func ConvertLuaValueToGoValue(val lua.LValue) interface{}
- func ConvertLuaValuesToGoValues(inputs []lua.LValue) []interface{}
- func ParseAndCompileLuaCode(codeStr string) (*lua.FunctionProto, error)
- type Layer
- type LayerEngine
- func (le *LayerEngine) LoadFlow(flows map[string][]string)
- func (le *LayerEngine) LoadLayers(layers []Layer)
- func (le *LayerEngine) LoadSpec(spec string) error
- func (le *LayerEngine) RunFlow(name string, inputValues map[string]any) (any, error)
- func (le *LayerEngine) RunLayer(name string, inputValues []any) (any, error)
- type LayerRunner
- type RunType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseAndCompileLuaCode ¶
func ParseAndCompileLuaCode(codeStr string) (*lua.FunctionProto, error)
Types ¶
type LayerEngine ¶
type LayerEngine struct {
// contains filtered or unexported fields
}
func NewBlankLayerEngine ¶ added in v0.0.1
func NewBlankLayerEngine() *LayerEngine
func NewLayerEngine ¶
func NewLayerEngine(codegenertor *codegen.CodeGen) *LayerEngine
func (*LayerEngine) LoadFlow ¶
func (le *LayerEngine) LoadFlow(flows map[string][]string)
func (*LayerEngine) LoadLayers ¶
func (le *LayerEngine) LoadLayers(layers []Layer)
func (*LayerEngine) LoadSpec ¶ added in v0.0.1
func (le *LayerEngine) LoadSpec(spec string) error
type LayerRunner ¶
type LayerRunner struct {
// contains filtered or unexported fields
}
func NewLayerRunner ¶
func NewLayerRunner() *LayerRunner
func (*LayerRunner) Close ¶
func (cr *LayerRunner) Close()
func (*LayerRunner) LoadFunction ¶
func (cr *LayerRunner) LoadFunction(fnProto *lua.FunctionProto) error
func (*LayerRunner) ReadResult ¶
func (cr *LayerRunner) ReadResult(outputLen int) ([]lua.LValue, error)
func (*LayerRunner) RunFunction ¶
Click to show internal directories.
Click to hide internal directories.