MCPcopy
hub / github.com/superplanehq/superplane / executeWebhookNode

Method executeWebhookNode

pkg/public/server.go:1219–1225  ·  view source on GitHub ↗
(ctx context.Context, body []byte, headers http.Header, node models.CanvasNode, onNewEvents func([]models.CanvasEvent), recordExecution func(workflowID, executionID uuid.UUID))

Source from the content-addressed store, hash-verified

1217}
1218
1219func (s *Server) executeWebhookNode(ctx context.Context, body []byte, headers http.Header, node models.CanvasNode, onNewEvents func([]models.CanvasEvent), recordExecution func(workflowID, executionID uuid.UUID)) (int, *core.WebhookResponseBody, error) {
1220 if node.Type == models.NodeTypeTrigger {
1221 return s.executeTriggerNode(ctx, body, headers, node, onNewEvents)
1222 }
1223
1224 return s.executeActionNode(ctx, body, headers, node, onNewEvents, recordExecution)
1225}
1226
1227func (s *Server) executeTriggerNode(ctx context.Context, body []byte, headers http.Header, node models.CanvasNode, onNewEvents func([]models.CanvasEvent)) (int, *core.WebhookResponseBody, error) {
1228 ref := node.Ref.Data()

Callers 1

HandleWebhookMethod · 0.95

Calls 2

executeTriggerNodeMethod · 0.95
executeActionNodeMethod · 0.95

Tested by

no test coverage detected