expression

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterEngine

func RegisterEngine(url string, engine func(ctx context.Context) IEngine)

Types

type ICompiledExpression

type ICompiledExpression interface{}

type ICompiler

type ICompiler interface {
	CompileExpression(source string) (ICompiledExpression, error)
}

type IEngine

type IEngine interface {
	ICompiler
	IEvaluator
	SetItemAwareLocator(name string, itemAwareLocator data.IItemAwareLocator)
}

func GetEngine

func GetEngine(ctx context.Context, url string) (engine IEngine)

type IEvaluator

type IEvaluator interface {
	EvaluateExpression(expr ICompiledExpression, data interface{}) (IResult, error)
}

type IResult

type IResult interface{}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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