extension
4 functions / 5 types
Index
| Function | Description |
|---|---|
| Load | Compile an uploaded WebAssembly component and return its extension ID. |
| Reset | Interrupt an active run. The next run starts in a fresh sandbox. |
| Run | Execute an extension in a fresh sandbox and wait for its exported run() to finish. |
| Unload | Interrupt an active run and discard the compiled extension. Its ID becomes invalid. |
| Type | Description |
|---|---|
| Load | Compile an uploaded WebAssembly component and return its extension ID. |
| LoadResponse | |
| Reset | Interrupt an active run. The next run starts in a fresh sandbox. |
| Run | Execute an extension in a fresh sandbox and wait for its exported run() to finish. |
| Unload | Interrupt an active run and discard the compiled extension. Its ID becomes invalid. |
Load
RPC
Load(request: extension.Load) -> extension.LoadResponseCompile an uploaded WebAssembly component and return its extension ID.
Requires extension access at startup. Accepts up to 32 MiB and stores at most 32 extensions.
Service method: spatialengine.v1.extension.Extension.Load.
Returns extension.LoadResponse.
component : bytes
Reset
RPC
Reset(request: extension.Reset) -> google.protobuf.EmptyInterrupt an active run. The next run starts in a fresh sandbox.
Service method: spatialengine.v1.extension.Extension.Reset.
Returns google.protobuf.Empty.
id : string
Run
RPC
Run(request: extension.Run) -> google.protobuf.EmptyExecute an extension in a fresh sandbox and wait for its exported run() to finish.
Concurrent runs of one ID fail. Reset or unload interrupts a run. Execution errors propagate to the caller. Statements already applied by an interrupted run are not rolled back. At most four extensions can run simultaneously. Runs have a 30 second deadline. Host filesystem, environment, network, and stdin access are unavailable. The component can still submit engine statements.
Service method: spatialengine.v1.extension.Extension.Run.
Returns google.protobuf.Empty.
id : string
Unload
RPC
Unload(request: extension.Unload) -> google.protobuf.EmptyInterrupt an active run and discard the compiled extension. Its ID becomes invalid.
Service method: spatialengine.v1.extension.Extension.Unload.
Returns google.protobuf.Empty.
id : string
Load
Message
Compile an uploaded WebAssembly component and return its extension ID.
Requires extension access at startup. Accepts up to 32 MiB and stores at most 32 extensions.
component : bytes
LoadResponse
Message
value optional : string
Reset
Message
Interrupt an active run. The next run starts in a fresh sandbox.
id : string
Run
Message
Execute an extension in a fresh sandbox and wait for its exported run() to finish.
Concurrent runs of one ID fail. Reset or unload interrupts a run. Execution errors propagate to the caller. Statements already applied by an interrupted run are not rolled back. At most four extensions can run simultaneously. Runs have a 30 second deadline. Host filesystem, environment, network, and stdin access are unavailable. The component can still submit engine statements.
id : string
Unload
Message
Interrupt an active run and discard the compiled extension. Its ID becomes invalid.
id : string