options

package
v0.0.0-...-1982c3d Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Elsa

type Elsa struct {
	// Permissions
	Perms *Perms
	// Async recv function
	Recv Recv
}

Elsa represents general data for the runtime

type Environment

type Environment struct {
	// Enable or disable color logging
	NoColor bool
	// Command-line args to pass into Elsa.args
	Args []string
	// Whether to run tests associated with `Elsa.tests()`
	RunTests bool
}

Environment configure the runtime environment

type Options

type Options struct {
	// File name of the source (used for debuging purposes)
	SourceFile string
	// Source code
	Source string
	// Permission
	Perms *Perms
	// Configure Environment
	Env Environment
}

Options options for dispatching a new Elsa + QuickJS runtime

type Perms

type Perms struct {
	// File system access
	Fs bool
	// Net access
	Net bool
	// Env access
	Env bool
}

Perms permissions available for Elsa

type Recv

type Recv func(id quickjs.Value, val quickjs.Value) quickjs.Value

Recv callback for an async op

Jump to

Keyboard shortcuts

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