Documentation ¶
Index ¶
Constants ¶
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.
const ExitCode = "exit_code_"
ExitCode is the name of a wasm symbol that holds the exit code of a process.
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.
const FileServiceMaxBufSize = 2048
const FileServiceMaxPathPart = 20
const FileServicePathPrefix = "/parigot/app/"
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.
const WasmPageSize = 4096
WasmPageSize is the size of a memory page in wasm. I believe this is dictated by the spec.
Variables ¶
var ControlledExit = "controlled exit via panic:"
this is the value used for a panic that is intended to be a controlled exit
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.
var ExitMethod = id.MethodId(id.NewIdTyped[id.DefMethod](^uint64(0), 0xfffffffffffffff2))
this is really a "phantom" serivce, used only for exiting
var ExitService = id.ServiceId(id.NewIdTyped[id.DefService](^uint64(0), 0xfffffffffffffff1))
this is really a "phantom" serivce, used only for exiting
var FunctionTimeoutInMillis = int64(3000)
The amount of time we will wait for a function call to be completed.
var KoopmanTable = crc32.MakeTable(crc32.Koopman)
KoopmanTable is the `crc32.Koopman` data in a table ready to use for CRC32 computations.
var LaunchMethod = id.MethodId(id.NewIdTyped[id.DefMethod](^uint64(0), 0xfffffffffffffff0))
all calls to launch use the same Id
var MagicStringOfBytes = uint64(0x1789071417760704)
In parigot the 8 byte magic value, when needed, is the date of the french and us revolutions, in hex.
var ReadBufferSize = 8192
ReadBuffer is the maximum amount of data you can expect to receive in single read call with files or the network.
var WasmIs32Bit bool // init function
WasmIs32Bit is true on a 32 bit wasm implementation
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.