refactor(plugin): delete the unused Registry type
Registry carried no plugin identity, discovery, compatibility or lifecycle, so it was never the seed for the approved internal/domain/plugin package. Host, Manifest and Module are, and they stay. Regenerating pluginextract strips the interface-wrapper nil guards, so those are restored by hand; the only intended change to the generated table is dropping the Registry symbol.
This commit is contained in:
4 files changed
+1
-26
No files matched your search
@@ -26,19 +26,6 @@ type Plugin interface {
|
||||
Version() string
|
||||
}
|
||||
|
||||
// Registry holds loaded plugins and dispatches extension point calls.
|
||||
type Registry struct {
|
||||
plugins []Plugin
|
||||
}
|
||||
|
||||
// Register adds a plugin to the registry.
|
||||
func (r *Registry) Register(p Plugin) {
|
||||
r.plugins = append(r.plugins, p)
|
||||
}
|
||||
|
||||
// Plugins returns all registered plugins.
|
||||
func (r *Registry) Plugins() []Plugin { return r.plugins }
|
||||
|
||||
// LoadDir discovers and evaluates .go files in the given directory.
|
||||
// Each file must export a variable named "Plugin" that implements the
|
||||
// Plugin interface. Failed plugins are logged and skipped -- the daemon
|
||||
|
||||
Reference in new issue
Block a user