Documentation ¶
Rendered for js/wasm
Overview ¶
Package scripting executes action's JavaScript code in a JS vm.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Exec ¶
func Exec(event map[string]interface{}, prevActionData map[string]interface{}, code string) (string, map[string]interface{}, error)
Exec executes js code in a vm, exposing the event data and the data from the previous action. The goal is to have as much data as possible to allow automatic decision making. "event" is the event data sent by a eventsource, "prev" is the data from the previous action, code is the JS script to execute.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.