Documentation ¶
Overview ¶
Package proc provides the WebAssembly host module for Wetware processes
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BindModule ¶
func BindModule(ctx context.Context, r wasm.Runtime, opt ...Option) *wazergo.ModuleInstance[*Module]
BindModule instantiates a host module instance and binds it to the supplied runtime. The returned module instance is bound to the lifetime of r.
Types ¶
type Option ¶
func WithClient ¶
func WithClient[Client ~capnp.ClientKind](c Client) Option
WithClient sets the bootstrap client provided to the guest code.
func WithLogger ¶
WithLogger sets the error logger for the capnp transport. If l == nil, logging is disabled.
Click to show internal directories.
Click to hide internal directories.