Versions in this module Expand all Collapse all v0 v0.1.0 Oct 19, 2026 Changes in this version + var ErrAfterDone = errors.New("applet wrote output after reporting that it is done") + var ErrInvalidOutput = errors.New("applet wrote output that is not a JSON object") + var ErrMemory = errors.New("applet exceeded its memory limit") + var ErrNotDone = errors.New("applet stopped without reporting that it is done") + type Applet struct + func (a *Applet) Close(ctx context.Context) error + func (a *Applet) Run(ctx context.Context, params json.RawMessage, ...) error + func (a *Applet) RunAll(ctx context.Context, params json.RawMessage, inputs []json.RawMessage, ...) ([]json.RawMessage, error) + type AppletError struct + Input int + Message string + Stack string + func (e *AppletError) Error() string + type Engine struct + func NewEngine(ctx context.Context, deps map[string][]byte, limits Limits) (*Engine, error) + func (e *Engine) Close(ctx context.Context) error + func (e *Engine) Load(ctx context.Context, wasm []byte) (*Applet, error) + type Limits struct + func (l Limits) WithCloseOnContextDone(d bool) Limits + func (l Limits) WithMemoryMiB(mebibytes uint32) Limits