scripting

package
v0.0.0-...-bcbb5c0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 29, 2018 License: Apache-2.0 Imports: 3 Imported by: 1

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL