Documentation
¶
Index ¶
- func AwaitsCallback(result models.NodeResult) bool
- func CallbackAllowed(result models.NodeResult, token string) bool
- func Normalize(nodeType *models.RemoteNodeType)
- func Prepare(nodeType *models.RemoteNodeType) error
- type Node
- func (n *Node) Execute(execution models.ExecutionContext, inputs map[string]models.NodeResult) (map[string]models.NodeResult, error)
- func (n *Node) ID() string
- func (n *Node) InputPorts() []models.InputPort
- func (n *Node) OutputPorts() []models.OutputPort
- func (n *Node) Type() string
- func (n *Node) Validate(config map[string]any) error
- type Types
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AwaitsCallback ¶ added in v0.2.0
func AwaitsCallback(result models.NodeResult) bool
AwaitsCallback reports whether result is a remote node waiting for its service to call back, which only an answer naming a port can resume.
func CallbackAllowed ¶
func CallbackAllowed(result models.NodeResult, token string) bool
CallbackAllowed reports whether token is the callback token handed out with the call that left result waiting.
func Normalize ¶
func Normalize(nodeType *models.RemoteNodeType)
func Prepare ¶
func Prepare(nodeType *models.RemoteNodeType) error
Prepare validates a node type the way the platform API accepts it and fills its defaults.
Types ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
func (*Node) Execute ¶
func (n *Node) Execute(execution models.ExecutionContext, inputs map[string]models.NodeResult) (map[string]models.NodeResult, error)
func (*Node) InputPorts ¶
func (*Node) OutputPorts ¶
func (n *Node) OutputPorts() []models.OutputPort
Click to show internal directories.
Click to hide internal directories.