Documentation
¶
Index ¶
- type Any
- func (a *Any) BinaryOp(op token.Token, rhs tengo.Object) (tengo.Object, error)
- func (a *Any) Call(args ...tengo.Object) (ret tengo.Object, err error)
- func (a *Any) CanCall() bool
- func (a *Any) CanIterate() bool
- func (a *Any) Copy() tengo.Object
- func (a *Any) Equals(another tengo.Object) bool
- func (a *Any) IndexGet(index tengo.Object) (value tengo.Object, err error)
- func (a *Any) IndexSet(index, value tengo.Object) error
- func (a *Any) IsFalsy() bool
- func (a *Any) IsNil() bool
- func (a *Any) IsTruthy() bool
- func (a *Any) IsUndefined() bool
- func (a *Any) Iterate() tengo.Iterator
- func (a *Any) String() string
- func (a *Any) TypeName() string
- type Executor
- type ObjectConverterFn
- func Context(ctx context.Context) ObjectConverterFn
- func Entity(entity *qdata.Entity) ObjectConverterFn
- func EntitySchema(schema *qdata.EntitySchema) ObjectConverterFn
- func Factory() ObjectConverterFn
- func Field(field *qdata.Field) ObjectConverterFn
- func FieldSchema(schema *qdata.FieldSchema) ObjectConverterFn
- func Store(s qdata.StoreInteractor) ObjectConverterFn
- func Value(value *qdata.Value) ObjectConverterFn
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) CanIterate ¶
func (*Any) IsUndefined ¶
type Executor ¶
type Executor interface {
Execute(ctx context.Context, in map[string]ObjectConverterFn) (map[string]any, error)
}
func NewExecutor ¶
type ObjectConverterFn ¶
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 Store ¶
func Store(s qdata.StoreInteractor) ObjectConverterFn
func Value ¶
func Value(value *qdata.Value) ObjectConverterFn
Click to show internal directories.
Click to hide internal directories.