proc

package
v0.1.0-alpha.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2023 License: Apache-2.0, MIT Imports: 12 Imported by: 0

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 Module

type Module struct {
	// contains filtered or unexported fields
}

func (Module) Close

func (m Module) Close(context.Context) error

type Option

type Option = wazergo.Option[*Module]

func WithClient

func WithClient[Client ~capnp.ClientKind](c Client) Option

WithClient sets the bootstrap client provided to the guest code.

func WithLogger

func WithLogger(l log.Logger) Option

WithLogger sets the error logger for the capnp transport. If l == nil, logging is disabled.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL