parent

package
v2026.701.2 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseGlobal

func CloseGlobal()

func RunGlobal added in v2026.611.0

func RunGlobal(ctx context.Context, wasm []byte, mode string, exec ToolExec) (ipc.RunDone, error)

func SimulateWorkerCrash added in v2026.611.0

func SimulateWorkerCrash()

func Warm

func Warm(ctx context.Context, version string)

Types

type Client

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

func Global

func Global(ctx context.Context) (*Client, error)

func Start

func Start(ctx context.Context) (*Client, error)

func (*Client) Close

func (c *Client) Close() error

func (*Client) Run

func (c *Client) Run(ctx context.Context, wasm []byte, mode string, exec ToolExec) (ipc.RunDone, error)

type ToolExec

type ToolExec func(ctx context.Context, name string, args json.RawMessage) (json.RawMessage, error)

Jump to

Keyboard shortcuts

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