plan

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Evaluate

func Evaluate(expr *op.Expression, cache *Cache, parent *Planner) (est.New, error)

Types

type Cache

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

func NewCache

func NewCache(cacheSize int) *Cache

func (*Cache) Expression

func (c *Cache) Expression(name string) (*Value, bool)

func (*Cache) Put

func (c *Cache) Put(name string, planner *Planner, compute est.Compute)

type Planner

type Planner struct {
	*est.Control
	Type *scope.Type

	*op.Functions
	// contains filtered or unexported fields
}

func New

func New(sizes ...int) *Planner

func (*Planner) Compile

func (p *Planner) Compile(template []byte) (*est.Execution, func() *est.State, error)

func (*Planner) DefineVariable

func (p *Planner) DefineVariable(name string, v interface{}) error

func (*Planner) EmbedVariable

func (p *Planner) EmbedVariable(name string, val interface{}) error

func (*Planner) SelectorExpr

func (p *Planner) SelectorExpr(selector *expr.Select) (*op.Selector, error)

type Value

type Value struct {
	Planner *Planner
	Compute est.Compute
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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