wasi

package
v1.7.1 Latest Latest
Warning

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

Go to latest
Published: May 30, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewLogWriter

func NewLogWriter(ctx context.Context) io.Writer

Types

type LogWriter

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

func (*LogWriter) Write

func (w *LogWriter) Write(p []byte) (n int, err error)

type Module

type Module struct {
	sync.Mutex
	// contains filtered or unexported fields
}

A Module represents a wazero.Runtime that clears and is destroyed upon completion of a request. It has the pre-compiled `env` host module, as well as pre-compiled WASM code provided by the user

func (*Module) Close

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

func (*Module) ExecuteNewCall

func (m *Module) ExecuteNewCall(ctx context.Context, call *wasm.Call, wasmInstance wasm.Instance, arguments []wasm.Argument) (out wasm.Instance, err error)

func (*Module) NewInstance

func (m *Module) NewInstance(ctx context.Context) (out wasm.Instance, err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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