Documentation
¶
Index ¶
- func TryGetOutputValue[T any](output Output[T], fallback T) T
- type ArrayValueInputPort
- type Describable
- type InputPort
- type Named
- type Node
- type NodeState
- type Output
- type OutputPort
- type Pathed
- type Port
- type SingleValueInputPort
- type StateData
- type Stateful
- type Struct
- type StructOutput
- type Typed
- type Value
- type VersionData
- type Versioned
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TryGetOutputValue ¶ added in v0.17.0
Types ¶
type ArrayValueInputPort ¶ added in v0.23.0
type ArrayValueInputPort interface {
InputPort
Value() []OutputPort
Add(port OutputPort) error
Remove(port OutputPort) error
}
type Describable ¶ added in v0.21.0
type Describable interface {
Description() string
}
type InputPort ¶ added in v0.23.0
type InputPort interface {
Port
// Remove any connections to this port
Clear()
}
type Output ¶ added in v0.11.0
type Output[T any] interface { OutputPort Value() T }
type OutputPort ¶ added in v0.23.0
type SingleValueInputPort ¶ added in v0.23.0
type SingleValueInputPort interface {
InputPort
Value() OutputPort
Set(port OutputPort) error
}
type Struct ¶
type Struct[T any] struct { Data T // contains filtered or unexported fields }
func (Struct[T]) Description ¶ added in v0.21.0
func (*Struct[T]) Outputs ¶ added in v0.20.0
func (s *Struct[T]) Outputs() map[string]OutputPort
type StructOutput ¶ added in v0.20.0
type StructOutput[T any] struct { // contains filtered or unexported fields }
func NewStructOutput ¶ added in v0.23.0
func NewStructOutput[T any](val T) StructOutput[T]
func (StructOutput[T]) LogError ¶ added in v0.23.0
func (so StructOutput[T]) LogError(err error)
func (StructOutput[T]) Name ¶ added in v0.20.0
func (so StructOutput[T]) Name() string
func (StructOutput[T]) Node ¶ added in v0.20.0
func (so StructOutput[T]) Node() Node
func (*StructOutput[T]) Set ¶ added in v0.23.0
func (so *StructOutput[T]) Set(v T)
>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> Methods called by the actual function that builds the thing
We do this circus act where the StructOutput returned from the function isn't the StructOutput we pass around to other nodes to use. >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
func (StructOutput[T]) Type ¶ added in v0.23.0
func (so StructOutput[T]) Type() string
func (*StructOutput[T]) Value ¶ added in v0.20.0
func (so *StructOutput[T]) Value() T
func (StructOutput[T]) Version ¶ added in v0.23.0
func (so StructOutput[T]) Version() int
type Value ¶
type Value[T any] struct { VersionData // contains filtered or unexported fields }
func (*Value[T]) Outputs ¶ added in v0.23.0
func (tn *Value[T]) Outputs() map[string]OutputPort
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.