goja

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bind

func Bind(vm *goja.Runtime, astral target.Apphost) (err error)

func NewRun

func NewRun(newRuntime target.NewRuntime) target.Run[target.AppJs]

func NewRunner

func NewRunner(newRuntime target.NewRuntime) target.Runner[target.AppJs]

Types

type Backend

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

func NewBackend

func NewBackend(apphost target.Apphost) *Backend

func (*Backend) RunFs

func (b *Backend) RunFs(files fs.FS) (err error)

func (*Backend) RunSource

func (b *Backend) RunSource(app string) (err error)

type Runner

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

func (*Runner) Reload

func (r *Runner) Reload() (err error)

func (*Runner) Run

func (r *Runner) Run(ctx context.Context, app target.AppJs) (err error)

Jump to

Keyboard shortcuts

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