qscripting

package
v0.1.152 Latest Latest
Warning

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

Go to latest
Published: May 26, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Any

type Any struct {
	Value any
}

func (*Any) BinaryOp

func (a *Any) BinaryOp(op token.Token, rhs tengo.Object) (tengo.Object, error)

func (*Any) Call

func (a *Any) Call(args ...tengo.Object) (ret tengo.Object, err error)

func (*Any) CanCall

func (a *Any) CanCall() bool

func (*Any) CanIterate

func (a *Any) CanIterate() bool

func (*Any) Copy

func (a *Any) Copy() tengo.Object

func (*Any) Equals

func (a *Any) Equals(another tengo.Object) bool

func (*Any) IndexGet

func (a *Any) IndexGet(index tengo.Object) (value tengo.Object, err error)

func (*Any) IndexSet

func (a *Any) IndexSet(index, value tengo.Object) error

func (*Any) IsFalsy

func (a *Any) IsFalsy() bool

func (*Any) IsNil

func (a *Any) IsNil() bool

func (*Any) IsTruthy

func (a *Any) IsTruthy() bool

func (*Any) IsUndefined

func (a *Any) IsUndefined() bool

func (*Any) Iterate

func (a *Any) Iterate() tengo.Iterator

func (*Any) String

func (a *Any) String() string

func (*Any) TypeName

func (a *Any) TypeName() string

type Executor

type Executor interface {
	Execute(ctx context.Context, in map[string]ObjectConverterFn) (map[string]any, error)
}

func NewExecutor

func NewExecutor(src string) Executor

type ObjectConverterFn

type ObjectConverterFn func() tengo.Object

func Context

func Context(ctx context.Context) ObjectConverterFn

Context creates a Tengo object representing the context

func Entity

func Entity(entity *qdata.Entity) ObjectConverterFn

func EntitySchema

func EntitySchema(schema *qdata.EntitySchema) ObjectConverterFn

func Factory

func Factory() ObjectConverterFn

func Field

func Field(field *qdata.Field) ObjectConverterFn

func FieldSchema

func FieldSchema(schema *qdata.FieldSchema) ObjectConverterFn

func Value

func Value(value *qdata.Value) ObjectConverterFn

Jump to

Keyboard shortcuts

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