Expand description
The plugin host lifecycle (internal/pluginhost/host.go, snapshot.go).
Host::apply_config discovers plugin files, loads new ones (dlopen and
plugin.register), reconfigures loaded ones (plugin.reconfigure), hot-reloads a
changed file (plugin.quiesce on the old instance, rollback when the new one fails,
the old instance retired but still loaded) and publishes an immutable snapshot of
active plugins ordered by priority (descending) then ID. Disabling plugins globally
empties the snapshot but keeps libraries loaded, as Go does. A plugin whose host-side
adapter panicked is fused: skipped until its file changes.
Structs§
- Host
- The plugin host. Cheap to clone.
- Native
Loader dlopen-based loader (Unix). Other platforms report plugins as unsupported.- Record
- One active plugin in a snapshot (Go
capabilityRecord). - Registered
Plugin Info - Go
RegisteredPluginInfo. - Registered
Plugin Menu - Go
RegisteredPluginMenu. - Snapshot
- Active plugins, highest priority first.
Traits§
- Loader
- Opens plugin libraries. The production loader is
NativeLoader.
Functions§
- bytes_
of - Payload bytes for an RPC field that Go fills with
bytes.Clone. - normalize_
provider - Go
normalizeProviderID. - support_
plugin_ header_ value - Go
SupportPluginHeaderValue:1when this build can load native plugins.