Documentation ¶
Index ¶
- func TryGetOutputValue[T any](output NodeOutput[T], fallback T) T
- type Alertable
- type Dependent
- type Describable
- type Input
- type Named
- type Node
- type NodeDependency
- type NodeOutput
- type NodeOutputReference
- type NodeState
- type Output
- type Pathed
- type Processor
- type StateData
- type Stateful
- type Struct
- func (sn *Struct[T, G]) AddSubscription(a Alertable)
- func (sn Struct[T, G]) Dependencies() []NodeDependency
- func (sn Struct[T, G]) Description() string
- func (sn Struct[T, G]) Inputs() []Input
- func (sn Struct[T, G]) Name() string
- func (sn *Struct[T, G]) Node() Node
- func (sn *Struct[T, G]) Out() StructOutput[T, G]
- func (sn Struct[T, G]) Outdated() bool
- func (sn *Struct[T, G]) Outputs() []Output
- func (sn Struct[T, G]) Path() string
- func (sn *Struct[T, G]) Port() string
- func (sn *Struct[T, G]) SetInput(input string, output Output)
- func (sn *Struct[T, G]) State() NodeState
- func (sn Struct[T, G]) Type() string
- func (sn *Struct[T, G]) Value() T
- func (sn Struct[T, G]) Version() int
- type StructDependency
- type StructOutput
- type StructProcesor
- type Subscribable
- type Typed
- type ValueNode
- func (v *ValueNode[T]) AddSubscription(a Alertable)
- func (v *ValueNode[T]) Dependencies() []NodeDependency
- func (tn ValueNode[T]) Inputs() []Input
- func (in ValueNode[T]) Name() string
- func (in *ValueNode[T]) Node() Node
- func (in *ValueNode[T]) Out() ValueNodeOutput[T]
- func (tn *ValueNode[T]) Outputs() []Output
- func (in *ValueNode[T]) Port() string
- func (in *ValueNode[T]) Set(value T)
- func (vn ValueNode[T]) SetInput(input string, output Output)
- func (v *ValueNode[T]) State() NodeState
- func (in ValueNode[T]) Value() T
- type ValueNodeOutput
- type VersionData
- type Versioned
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TryGetOutputValue ¶ added in v0.17.0
func TryGetOutputValue[T any](output NodeOutput[T], fallback T) T
Types ¶
type Dependent ¶
type Dependent interface {
Dependencies() []NodeDependency
}
type Describable ¶ added in v0.21.0
type Describable interface {
Description() string
}
type NodeDependency ¶
type NodeOutput ¶
type NodeOutput[T any] interface { NodeOutputReference Value() T }
type NodeOutputReference ¶ added in v0.11.0
type Output ¶ added in v0.11.0
type Output struct { Type string NodeOutput NodeOutputReference }
type Struct ¶
type Struct[T any, G StructProcesor[T]] struct { Data G // contains filtered or unexported fields }
func NewStruct ¶ added in v0.20.0
func NewStruct[T StructProcesor[G], G any](p T) *Struct[G, T]
func (*Struct[T, G]) AddSubscription ¶ added in v0.20.0
func (Struct[T, G]) Dependencies ¶ added in v0.20.0
func (sn Struct[T, G]) Dependencies() []NodeDependency
func (Struct[T, G]) Description ¶ added in v0.21.0
func (*Struct[T, G]) Out ¶ added in v0.20.0
func (sn *Struct[T, G]) Out() StructOutput[T, G]
type StructDependency ¶ added in v0.20.0
type StructDependency struct {
// contains filtered or unexported fields
}
func (StructDependency) Dependency ¶ added in v0.20.0
func (snd StructDependency) Dependency() Node
func (StructDependency) DependencyPort ¶ added in v0.20.0
func (snd StructDependency) DependencyPort() string
func (StructDependency) Name ¶ added in v0.20.0
func (snd StructDependency) Name() string
type StructOutput ¶ added in v0.20.0
type StructOutput[T any, G StructProcesor[T]] struct { Struct *Struct[T, G] Name string }
func (StructOutput[T, G]) Node ¶ added in v0.20.0
func (sno StructOutput[T, G]) Node() Node
func (StructOutput[T, G]) Port ¶ added in v0.20.0
func (sno StructOutput[T, G]) Port() string
func (StructOutput[T, G]) Value ¶ added in v0.20.0
func (sno StructOutput[T, G]) Value() T
type StructProcesor ¶ added in v0.20.0
type Subscribable ¶
type Subscribable interface {
AddSubscription(a Alertable)
}
type ValueNode ¶
type ValueNode[T any] struct { VersionData // contains filtered or unexported fields }
func (*ValueNode[T]) AddSubscription ¶
func (*ValueNode[T]) Dependencies ¶
func (v *ValueNode[T]) Dependencies() []NodeDependency
func (*ValueNode[T]) Out ¶ added in v0.11.0
func (in *ValueNode[T]) Out() ValueNodeOutput[T]
type ValueNodeOutput ¶ added in v0.11.0
func (ValueNodeOutput[T]) Node ¶ added in v0.11.0
func (sno ValueNodeOutput[T]) Node() Node
func (ValueNodeOutput[T]) Port ¶ added in v0.11.0
func (sno ValueNodeOutput[T]) Port() string
func (ValueNodeOutput[T]) Value ¶ added in v0.11.0
func (sno ValueNodeOutput[T]) Value() T
type VersionData ¶
type VersionData struct {
// contains filtered or unexported fields
}
func (*VersionData) Increment ¶
func (v *VersionData) Increment() int
func (VersionData) Version ¶
func (v VersionData) Version() int
Source Files ¶
Click to show internal directories.
Click to hide internal directories.