Documentation
¶
Index ¶
- type NodeWsConnection
- func (n *NodeWsConnection) GetID() idwrap.IDWrap
- func (n *NodeWsConnection) GetName() string
- func (n *NodeWsConnection) GetOutputVariables() []string
- func (n *NodeWsConnection) GetRequiredVariables() []string
- func (n *NodeWsConnection) IsEntryNode() bool
- func (n *NodeWsConnection) IsLoopCoordinator() bool
- func (n *NodeWsConnection) RunAsync(ctx context.Context, req *node.FlowNodeRequest, ...)
- func (n *NodeWsConnection) RunSync(ctx context.Context, req *node.FlowNodeRequest) node.FlowNodeResult
- func (n *NodeWsConnection) SetID(id idwrap.IDWrap)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NodeWsConnection ¶
type NodeWsConnection struct {
FlowNodeID idwrap.IDWrap
Name string
URL string
Headers map[string]string
HTTPClient *http.Client // shared client with cookie jar for upgrade handshake
}
NodeWsConnection is a listener entry node that connects to a WebSocket and dispatches HandleWsMessage chains for each incoming message.
func (*NodeWsConnection) GetID ¶
func (n *NodeWsConnection) GetID() idwrap.IDWrap
func (*NodeWsConnection) GetName ¶
func (n *NodeWsConnection) GetName() string
func (*NodeWsConnection) GetOutputVariables ¶
func (n *NodeWsConnection) GetOutputVariables() []string
GetOutputVariables implements node.VariableIntrospector.
func (*NodeWsConnection) GetRequiredVariables ¶
func (n *NodeWsConnection) GetRequiredVariables() []string
GetRequiredVariables implements node.VariableIntrospector.
func (*NodeWsConnection) IsEntryNode ¶
func (n *NodeWsConnection) IsEntryNode() bool
IsEntryNode marks this as a valid flow entry point (no incoming edges).
func (*NodeWsConnection) IsLoopCoordinator ¶
func (n *NodeWsConnection) IsLoopCoordinator() bool
IsLoopCoordinator prevents the runner from applying per-node timeout.
func (*NodeWsConnection) RunAsync ¶
func (n *NodeWsConnection) RunAsync(ctx context.Context, req *node.FlowNodeRequest, resultChan chan node.FlowNodeResult)
func (*NodeWsConnection) RunSync ¶
func (n *NodeWsConnection) RunSync(ctx context.Context, req *node.FlowNodeRequest) node.FlowNodeResult
func (*NodeWsConnection) SetID ¶
func (n *NodeWsConnection) SetID(id idwrap.IDWrap)
Click to show internal directories.
Click to hide internal directories.