module

package
v1.3.2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	ctx context.Context,
	rt wazero.Runtime,
	methodCallHandler MethodCallHandler,
	currentInvoke func() *invoke.Context,
	logFn logger.Logger,
) (api.Module, error)

Types

type MethodCallHandler added in v1.3.0

type MethodCallHandler func(ctx context.Context, methodID uint32, payload []byte) ([]byte, error)

MethodCallHandler handles host callbacks by numeric method ID.

Jump to

Keyboard shortcuts

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