Documentation ¶
Index ¶
Constants ¶
View Source
const ModuleName = "wasix_32v1"
Variables ¶
This section is empty.
Functions ¶
func BackgroundContext ¶
func Instantiate ¶
Instantiate instantiates the ModuleName module into the runtime.
Notes ¶
- Failure cases are documented on wazero.Runtime InstantiateModule.
- Closing the wazero.Runtime has the same effect as closing the result.
Types ¶
type Builder ¶
type Builder interface { // Compile compiles the ModuleName module. Call this before Instantiate. // // Note: This has the same effect as the same function on wazero.HostModuleBuilder. Compile(context.Context) (wazero.CompiledModule, error) // Instantiate instantiates the ModuleName module and returns a function to close it. // // Note: This has the same effect as the same function on wazero.HostModuleBuilder. Instantiate(context.Context) (api.Closer, error) }
Builder configures the ModuleName module for later use via Compile or Instantiate.
Notes ¶
- This is an interface for decoupling, not third-party implementations. All implementations are in wazero.
Click to show internal directories.
Click to hide internal directories.