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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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