wasi

package
v0.4.3 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile added in v0.1.3

func Compile(ctx context.Context, params CompileParams) (mod wazero.CompiledModule, err error)

func Execute

func Execute(ctx context.Context, params ExecParams) (output []byte, err error)

Types

type CompileParams added in v0.1.3

type CompileParams struct {
	Wasm     []byte
	CacheDir string
}

type ExecParams

type ExecParams struct {
	Wasm           []byte
	CompiledModule wazero.CompiledModule
	Release        string
	Stdin          io.Reader
	Args           []string
	Env            map[string]string
	CacheDir       string
}

Jump to

Keyboard shortcuts

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