Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PluginFactory ¶ added in v1.2.0
PluginFactory is a function that builds a plugin.
type Registry ¶ added in v1.2.0
type Registry map[string]PluginFactory
Registry is a collection of all available plugins. The framework uses a registry to enable and initialize configured plugins. All plugins must be in the registry before initializing the framework.
func (Registry) Register ¶ added in v1.2.0
func (r Registry) Register(name string, factory PluginFactory) error
Register adds a new plugin to the registry. If a plugin with the same name exists, it returns an error.
func (Registry) Unregister ¶ added in v1.2.0
Unregister removes an existing plugin from the registry. If no plugin with the provided name exists, it returns an error.
Click to show internal directories.
Click to hide internal directories.