Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
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 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 Func interfaces.Func 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.