Documentation
¶
Index ¶
- Variables
- func NewNativeDesktopSchedulerConfig(instanceKey, engineID, pluginHostObjectKey, volID, peerID string, ...) *plugin_host_scheduler.Config
- func NewSchedulerConfig(instanceKey, engineID, pluginHostObjectKey, volID, peerID string, ...) *plugin_host_scheduler.Config
- func StartPluginScheduler(ctx context.Context, b bus.Bus, ...) (sched *plugin_host_scheduler.Controller, rel func(), err error)
- func StartPluginSchedulerWithConfig(ctx context.Context, b bus.Bus, schedConf *plugin_host_scheduler.Config) (sched *plugin_host_scheduler.Controller, rel func(), err error)
- type PluginHostController
Constants ¶
This section is empty.
Variables ¶
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 NewNativeDesktopSchedulerConfig ¶ added in v0.54.0
func NewNativeDesktopSchedulerConfig( instanceKey, engineID, pluginHostObjectKey, volID, peerID string, watchFetchManifest, disableStoreManifest, disableCopyManifest bool, quickJSPluginIDs []string, ) *plugin_host_scheduler.Config
NewNativeDesktopSchedulerConfig builds the native desktop plugin scheduler config.
func NewSchedulerConfig ¶ added in v0.51.7
func NewSchedulerConfig( instanceKey, engineID, pluginHostObjectKey, volID, peerID string, watchFetchManifest, disableStoreManifest, disableCopyManifest bool, ) *plugin_host_scheduler.Config
NewSchedulerConfig builds the default plugin scheduler config.
func StartPluginScheduler ¶
func StartPluginScheduler( ctx context.Context, b bus.Bus, instanceKey, 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.
func StartPluginSchedulerWithConfig ¶
func StartPluginSchedulerWithConfig( ctx context.Context, b bus.Bus, schedConf *plugin_host_scheduler.Config, ) (sched *plugin_host_scheduler.Controller, rel func(), err error)
StartPluginSchedulerWithConfig starts the scheduler with an explicit runtime binding.
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.