Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallFunc ¶
type CallFunc struct { Type *types.Type // this is the type of the var's value that we hold FuncType *types.Type Edge string // name of the edge used (typically starts with: `call:`) // Indexed specifies that args are accessed by index instead of name. // This is currently unused. Indexed bool // contains filtered or unexported fields }
CallFunc is a function that takes in a function and all the args, and passes through the results of running the function call.
func (*CallFunc) Info ¶
func (obj *CallFunc) Info() *interfaces.Info
Info returns some static info about itself.
func (*CallFunc) Init ¶
func (obj *CallFunc) Init(init *interfaces.Init) error
Init runs some startup code for this composite function.
type CompositeFunc ¶
type CompositeFunc struct { Type *types.Type // this is the type of the composite value we hold Len int // length of list or map (if used) // contains filtered or unexported fields }
CompositeFunc is a function that passes through the value it receives. It is used to take a series of inputs to a list, map or struct, and return that value as a stream that depends on those inputs. It helps the list, map, and struct's that fulfill the Expr interface but expressing a Func method.
func (*CompositeFunc) Close ¶
func (obj *CompositeFunc) Close() error
Close runs some shutdown code for this function and turns off the stream.
func (*CompositeFunc) Info ¶
func (obj *CompositeFunc) Info() *interfaces.Info
Info returns some static info about itself.
func (*CompositeFunc) Init ¶
func (obj *CompositeFunc) Init(init *interfaces.Init) error
Init runs some startup code for this composite function.
func (*CompositeFunc) Stream ¶
func (obj *CompositeFunc) Stream() error
Stream takes an input struct in the format as described in the Func and Graph methods of the Expr, and returns the actual expected value as a stream based on the changing inputs to that value.
func (*CompositeFunc) Validate ¶
func (obj *CompositeFunc) Validate() error
Validate makes sure we've built our struct properly.
type ConstFunc ¶
ConstFunc is a function that returns the constant value passed to Value.
func (*ConstFunc) Info ¶
func (obj *ConstFunc) Info() *interfaces.Info
Info returns some static info about itself.
func (*ConstFunc) Init ¶
func (obj *ConstFunc) Init(init *interfaces.Init) error
Init runs some startup code for this const.
type FunctionFunc ¶
type FunctionFunc struct { Type *types.Type // this is the type of the function that we hold Edge string // name of the edge used (typically "body") Func interfaces.Func Fn *types.FuncValue // contains filtered or unexported fields }
FunctionFunc is a function that passes through the function body it receives.
func (*FunctionFunc) Close ¶
func (obj *FunctionFunc) Close() error
Close runs some shutdown code for this function and turns off the stream.
func (*FunctionFunc) Info ¶
func (obj *FunctionFunc) Info() *interfaces.Info
Info returns some static info about itself.
func (*FunctionFunc) Init ¶
func (obj *FunctionFunc) Init(init *interfaces.Init) error
Init runs some startup code for this composite function.
func (*FunctionFunc) Stream ¶
func (obj *FunctionFunc) Stream() error
Stream takes an input struct in the format as described in the Func and Graph methods of the Expr, and returns the actual expected value as a stream based on the changing inputs to that value.
func (*FunctionFunc) Validate ¶
func (obj *FunctionFunc) Validate() error
Validate makes sure we've built our struct properly.
type IfFunc ¶
type IfFunc struct { Type *types.Type // this is the type of the if expression output we hold // contains filtered or unexported fields }
IfFunc is a function that passes through the value of the correct branch based on the conditional value it gets.
func (*IfFunc) Info ¶
func (obj *IfFunc) Info() *interfaces.Info
Info returns some static info about itself.
func (*IfFunc) Init ¶
func (obj *IfFunc) Init(init *interfaces.Init) error
Init runs some startup code for this if expression function.
type VarFunc ¶
type VarFunc struct { Type *types.Type // this is the type of the var's value that we hold Edge string // name of the edge used // contains filtered or unexported fields }
VarFunc is a function that passes through a function that came from a bind lookup. It exists so that the reactive function engine type checks correctly.
func (*VarFunc) Info ¶
func (obj *VarFunc) Info() *interfaces.Info
Info returns some static info about itself.
func (*VarFunc) Init ¶
func (obj *VarFunc) Init(init *interfaces.Init) error
Init runs some startup code for this composite function.