Raxol.Core.Runtime.Plugins.Registry (Raxol v0.5.0)

View Source

Plugin registry using GenServer for state management. Manages information about loaded plugins and their metadata.

Summary

Functions

Returns a specification to start this module under a supervisor.

Lists all registered plugins as {plugin_id, metadata} tuples.

Registers a plugin with its metadata.

Starts the plugin registry GenServer.

Unregisters a plugin by its ID.

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

list_plugins()

@spec list_plugins() :: [{atom(), map()}]

Lists all registered plugins as {plugin_id, metadata} tuples.

register_plugin(plugin_id, metadata)

@spec register_plugin(atom(), map()) :: :ok

Registers a plugin with its metadata.

start_link(opts \\ [])

Starts the plugin registry GenServer.

unregister_plugin(plugin_id)

@spec unregister_plugin(atom()) :: :ok

Unregisters a plugin by its ID.