options

package
v0.0.0-...-dbcf505 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Environment

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

type Options

type Options struct {
	// Options -> options for dispatching a new Renio + QuickJS runtime
	// File name of the source (used for debuging purposes)
	SourceFile string
	// Source code
	Source string
	// Permission
	Perms *Perms
	// Configure Environment
	Env Environment
}

type Perms

type Perms struct {
	// Perms -> permissions available for Renio
	// File system access
	Fs bool
	// Net access
	Net bool
	// Env access
	Env bool
}

type Recv

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

type Renio

type Renio struct {
	// Renio -> represents general data for the runtime
	// Permissions
	Perms *Perms
	// Async recv function
	Recv Recv
}

Jump to

Keyboard shortcuts

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