apishared

package
v0.0.0-...-71fdcac Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2023 License: BSD-3-Clause Imports: 3 Imported by: 1

Documentation

Index

Constants

View Source
const EntryPointSymbol = "_start"

EntryPointSymbol is what should be used to start up a ready instance. Note that we are turning off the instantiation's normal call to start so that we can control the startup and its entry point. In principle, this could vary by go compiler, but most use this C-originated convention.

View Source
const ExitCode = "exit_code_"

ExitCode is the name of a wasm symbol that holds the exit code of a process.

View Source
const ExpectedStackDumpSize = 4096 * 2

ExpectedStackDumpSize is used to allocate space so that stack trace can be placed in it, then read back line by line.

View Source
const FileServiceMaxBufSize = 2048
View Source
const FileServiceMaxPathPart = 20
View Source
const FileServicePathPrefix = "/parigot/app/"
View Source
const GuestReceiveBufferSize = WasmPageSize

GuestReceiveBufferSize is the maximum amount data that the guest expects to read in a response back from the server. Usually the send side is known apriori.

View Source
const WasmPageSize = 4096

WasmPageSize is the size of a memory page in wasm. I believe this is dictated by the spec.

Variables

View Source
var ControlledExit = "controlled exit via panic:"

this is the value used for a panic that is intended to be a controlled exit

View Source
var DefaultSearchDir = []string{"/workspaces/parigot/build", "build"}

we look in these dirs for modules and plugins (shared objects) this value is used when you don't configure this yourself in the deployment file.

View Source
var ExitMethod = id.MethodId(id.NewIdTyped[id.DefMethod](^uint64(0), 0xfffffffffffffff2))

this is really a "phantom" serivce, used only for exiting

View Source
var ExitService = id.ServiceId(id.NewIdTyped[id.DefService](^uint64(0), 0xfffffffffffffff1))

this is really a "phantom" serivce, used only for exiting

View Source
var FunctionTimeoutInMillis = int64(3000)

The amount of time we will wait for a function call to be completed.

View Source
var KoopmanTable = crc32.MakeTable(crc32.Koopman)

KoopmanTable is the `crc32.Koopman` data in a table ready to use for CRC32 computations.

View Source
var LaunchMethod = id.MethodId(id.NewIdTyped[id.DefMethod](^uint64(0), 0xfffffffffffffff0))

all calls to launch use the same Id

View Source
var MagicStringOfBytes = uint64(0x1789071417760704)

In parigot the 8 byte magic value, when needed, is the date of the french and us revolutions, in hex.

View Source
var ReadBufferSize = 8192

ReadBuffer is the maximum amount of data you can expect to receive in single read call with files or the network.

View Source
var WasmIs32Bit bool // init function

WasmIs32Bit is true on a 32 bit wasm implementation

View Source
var WasmWidth = int32(unsafe.Sizeof(uintptr(0))) // in bytes

WasmWith is the size of a uintptr for the wasm virtual machine.

Functions

This section is empty.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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