jsre

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	BigNumber_JS = deps.MustAsset("bignumber.js")
)

Functions

func GetJsStandardApis

func GetJsStandardApis() string

Types

type JSRE

type JSRE struct {
	// contains filtered or unexported fields
}

JSRE is a generic JS Runtime environment embedding the otto JS interpreter.

func (*JSRE) Generate

func (self *JSRE) Generate(ctx *actioncontext.Context) interpreter.Interpreter

func (*JSRE) Initialize

func (self *JSRE) Initialize()

func (*JSRE) Shutdown

func (self *JSRE) Shutdown()

func (*JSRE) Startup

func (self *JSRE) Startup()

type Runtime

type Runtime struct {
	// contains filtered or unexported fields
}

the Runtime object

func (*Runtime) Exec

func (rt *Runtime) Exec(code []byte, param []byte, ttl time.Duration) time.Duration

Directories

Path Synopsis
Package deps contains the console JavaScript dependencies Go embedded.
Package deps contains the console JavaScript dependencies Go embedded.
tool

Jump to

Keyboard shortcuts

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