structs

package
v0.0.0-...-173ccf6 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2018 License: GPL-3.0 Imports: 4 Imported by: 0

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

type ConstFunc struct {
	Value types.Value
	// contains filtered or unexported fields
}

ConstFunc is a function that returns the constant value passed to Value.

func (*ConstFunc) Close

func (obj *ConstFunc) Close() error

Close runs some shutdown code for this const and turns off the stream.

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.

func (*ConstFunc) Stream

func (obj *ConstFunc) Stream() error

Stream returns the single value that this const has, and then closes.

func (*ConstFunc) Validate

func (obj *ConstFunc) 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) Close

func (obj *IfFunc) Close() error

Close runs some shutdown code for this function and turns off the stream.

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.

func (*IfFunc) Stream

func (obj *IfFunc) 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 (*IfFunc) Validate

func (obj *IfFunc) Validate() error

Validate tells us if the input struct takes a valid form.

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) Close

func (obj *VarFunc) Close() error

Close runs some shutdown code for this function and turns off the stream.

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.

func (*VarFunc) Stream

func (obj *VarFunc) 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 (*VarFunc) Validate

func (obj *VarFunc) Validate() error

Validate makes sure we've built our struct properly.

Jump to

Keyboard shortcuts

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