js

package
v1.20.3 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecutionResult

type ExecutionResult struct {
	Value       any      `json:"value"`
	JSONString  string   `json:"json_string"`
	SummaryText string   `json:"summary_text"`
	Logs        []string `json:"logs"`
}

type JSEngine

type JSEngine struct {
	DefaultTimeout time.Duration
}

func NewJSEngine

func NewJSEngine(timeout time.Duration) *JSEngine

func (*JSEngine) Execute

func (e *JSEngine) Execute(ctx context.Context, jsCode string, store *session.SessionDataStore) (*ExecutionResult, *errors.XError)

Jump to

Keyboard shortcuts

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