Documentation
¶
Index ¶
- type LoadedPlugin
- type Loader
- func (l Loader) Discover(ctx context.Context) ([]string, error)
- func (l Loader) EnsurePluginsDir() error
- func (l Loader) Load(ctx context.Context, filePath string) (LoadedPlugin, *capability.Manifest, error)
- func (l Loader) LoadAll(ctx context.Context) ([]LoadedPlugin, []PluginLoadResult)
- func (l Loader) Unload(ctx context.Context, plg *LoadedPlugin) error
- type PluginLoadResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoadedPlugin ¶ added in v1.1.0
LoadedPlugin pairs one plugin's domain metadata with its live WASM instance. The domain record stays pure; the runtime handle lives here, where the loader, registry, and dev watcher can see it.
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
func (Loader) EnsurePluginsDir ¶
func (Loader) Load ¶
func (l Loader) Load( ctx context.Context, filePath string, ) (LoadedPlugin, *capability.Manifest, error)
Load loads a single .wasm plugin, along with its optional capability manifest. The returned LoadedPlugin pairs the domain metadata with the live WASM instance; the manifest is nil when the plugin has none.
func (Loader) LoadAll ¶
func (l Loader) LoadAll( ctx context.Context, ) ([]LoadedPlugin, []PluginLoadResult)
type PluginLoadResult ¶
type PluginLoadResult struct {
Plugin LoadedPlugin
Manifest *capability.Manifest
Err error
}