engine

package
v0.0.0-...-35a2fce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 17, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnknownLang = errors.New("unknown language")
View Source
var ErrWrongCodeFormat = errors.New("wrong code format")

Functions

This section is empty.

Types

type CelEngine

type CelEngine struct {
	// contains filtered or unexported fields
}

func NewCelEngine

func NewCelEngine() (*CelEngine, error)

func (*CelEngine) CalcValue

func (engine *CelEngine) CalcValue(formula *render.FlowFormula) (data [][]any, rows int, cols int, err error)

func (*CelEngine) InitData

func (engine *CelEngine) InitData(data map[string]any) error

type JsEngine

type JsEngine struct {
	// contains filtered or unexported fields
}

func NewJsEngine

func NewJsEngine() *JsEngine

func (*JsEngine) CalcValue

func (engine *JsEngine) CalcValue(formula *render.FlowFormula) (data [][]any, rows int, cols int, err error)

func (*JsEngine) InitData

func (engine *JsEngine) InitData(data map[string]any) error

type MultiEngine

type MultiEngine struct {
	Engines map[string]render.RenderEngine
	Alias   map[string]string
}

func NewMultiEngine

func NewMultiEngine(engines map[string]render.RenderEngine, alias map[string]string) *MultiEngine

func (*MultiEngine) CalcValue

func (engine *MultiEngine) CalcValue(formula *render.FlowFormula) (data [][]any, rows int, cols int, err error)

func (*MultiEngine) InitData

func (engine *MultiEngine) InitData(data map[string]any) error

type PyEngine

type PyEngine struct {
	// contains filtered or unexported fields
}

func NewPyEngine

func NewPyEngine() *PyEngine

func (*PyEngine) CalcValue

func (engine *PyEngine) CalcValue(formula *render.FlowFormula) (data [][]any, rows int, cols int, err error)

func (*PyEngine) InitData

func (engine *PyEngine) InitData(data map[string]any) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL