Versions in this module Expand all Collapse all v1 v1.3.2 Jun 8, 2026 v1.3.1 May 22, 2026 v1.3.0 May 20, 2026 Changes in this version + var ErrBadManifest = errors.New("extruntime: extension.toml is invalid") + var ErrClosed = errors.New("extruntime: module is closed") + var ErrNoManifest = errors.New("extruntime: extension.toml not found in directory") + var ErrUnknownFn = errors.New("extruntime: function not found in module") + var ErrUnsupported = errors.New("extruntime: runtime does not support this operation") + var NativeRegistry = struct{ ... } + func RegisterNative(ext, fn string, f NativeFunc) + type Capabilities struct + AcceptsLanguages []string + Cgo bool + HardSandbox bool + SupportsAbort bool + type Loader struct + func NewLoader(runtimes ...Runtime) *Loader + func (l *Loader) Close() error + func (l *Loader) LoadDir(ctx context.Context, dir string) (map[string]Module, error) + func (l *Loader) Runtimes() []string + func (l *Loader) SetLogger(log *slog.Logger) *Loader + type Manifest struct + Exports []string + Module string + Name string + Runtime string + Version string + func LoadManifest(dir string) (*Manifest, error) + type Module interface + Close func() error + Exports func() []string + Invoke func(ctx context.Context, fn string, payload []byte) ([]byte, error) + Name func() string + Runtime func() string + type NativeFunc func(ctx context.Context, payload []byte) ([]byte, error) + type Runtime interface + Capabilities func() Capabilities + Close func() error + Load func(ctx context.Context, dir string) (Module, error) + Name func() string + func NewNative() Runtime