MCPcopy
hub / github.com/ipfs/kubo / PluginLoader

Struct PluginLoader

plugin/loader/loader.go:89–95  ·  view source on GitHub ↗

PluginLoader keeps track of loaded plugins. To use: 1. Load any desired plugins with Load and LoadDirectory. Preloaded plugins will automatically be loaded. 2. Call Initialize to run all initialization logic. 3. Call Inject to register the plugins. 4. Optionally call Start to start plugins. 5. Call

Source from the content-addressed store, hash-verified

87// 4. Optionally call Start to start plugins.
88// 5. Call Close to close all plugins.
89type PluginLoader struct {
90 state loaderState
91 plugins []plugin.Plugin
92 started []plugin.Plugin
93 config config.Plugins
94 repo string
95}
96
97// NewPluginLoader creates new plugin loader.
98func NewPluginLoader(repo string) (*PluginLoader, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected