plugin_host_default

package
v0.51.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PluginHostControllerFactories = [](func(bus bus.Bus) controller.Factory){
	func(b bus.Bus) controller.Factory {
		return plugin_host_process.NewFactory(b)
	},
	func(b bus.Bus) controller.Factory {
		return plugin_host_quickjs.NewFactory(b)
	},
}

PluginHostControllerFactories construct the plugin host controller factory.

Functions

func StartPluginScheduler

func StartPluginScheduler(
	ctx context.Context,
	b bus.Bus,
	engineID,
	pluginHostObjectKey,
	volID,
	peerID string,
	watchFetchManifest,
	disableStoreManifest,
	disableCopyManifest bool,
) (sched *plugin_host_scheduler.Controller, rel func(), err error)

StartPluginScheduler starts the plugin host scheduler on the controller bus.

Types

type PluginHostController

type PluginHostController struct {
	ProcessHost *plugin_host_controller.Controller
	QuickjsHost *plugin_host_controller.Controller
}

PluginHostController is an alias to the plugin host controller type.

func StartPluginHost

func StartPluginHost(
	ctx context.Context,
	b bus.Bus,
	pluginsStateRoot,
	pluginsDistRoot string,
	webRuntimeID string,
) (ctrl *PluginHostController, rel func(), err error)

StartPluginHost starts the plugin host on the controller bus.

webRuntimeID is ignored on the native platform as the web runtime is bundled into the web plugin. pluginsStateRoot and pluginsDistRoot are ignored on the web platform as IndexedDB is used.

Jump to

Keyboard shortcuts

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