goja_runtime

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2024 License: LGPL-2.1 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GojaRunnerV1

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

func (*GojaRunnerV1) Introspect

Introspect implements runtime_registry.Runner.

type JsContext

type JsContext interface {
	GetValue(key string) interface{}
	SetValue(key string, value interface{})
}

type NativeModule

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

func RegisterNativeAPI

func RegisterNativeAPI(name string) *NativeModule

func (*NativeModule) RegisterNativeAPI

func (module *NativeModule) RegisterNativeAPI(name string) *NativeModule

func (*NativeModule) RegisterNativeFunction

func (module *NativeModule) RegisterNativeFunction(name string, fn func(ctx context.Context, binding runtimesRegistry.BindingSettings, jsContext JsContext, args ...interface{}) (interface{}, error))

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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