js

package
v0.0.0-...-58ec719 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultStackDepthLimit = 32
	DefaultMsMaxDuration   = 200
)

Default conf values for runner.

Variables

View Source
var Halt = errors.New("exceeded max execution time")

Functions

func LoadScript

func LoadScript(path string) (string, error)

Types

type Runner

type Runner struct {
	StackDepthLimit int
	MsMaxDuration   int64
}

func NewRunner

func NewRunner(stackDepthLimit int, msMaxDuration int64) *Runner

func (*Runner) RunScript

func (o *Runner) RunScript(script string, params map[string]interface{}) (granted bool, err error)

Jump to

Keyboard shortcuts

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