Skip to content

extension

4 functions / 5 types

Index

FunctionDescription
LoadCompile an uploaded WebAssembly component and return its extension ID.
ResetInterrupt an active run. The next run starts in a fresh sandbox.
RunExecute an extension in a fresh sandbox and wait for its exported run() to finish.
UnloadInterrupt an active run and discard the compiled extension. Its ID becomes invalid.
TypeDescription
LoadCompile an uploaded WebAssembly component and return its extension ID.
LoadResponse
ResetInterrupt an active run. The next run starts in a fresh sandbox.
RunExecute an extension in a fresh sandbox and wait for its exported run() to finish.
UnloadInterrupt an active run and discard the compiled extension. Its ID becomes invalid.

Load

RPC

Load(request: extension.Load) -> extension.LoadResponse

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.

Service method: spatialengine.v1.extension.Extension.Load.

Returns extension.LoadResponse.

component : bytes

Reset

RPC

Reset(request: extension.Reset) -> google.protobuf.Empty

Interrupt 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.Empty

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.

Service method: spatialengine.v1.extension.Extension.Run.

Returns google.protobuf.Empty.

id : string

Unload

RPC

Unload(request: extension.Unload) -> google.protobuf.Empty

Interrupt 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