ccproxy.core.plugins.hooks.registry¶
ccproxy.core.plugins.hooks.registry
¶
Central registry for all hooks
HookRegistry
¶
Central registry for all hooks with priority-based ordering.
Source code in ccproxy/core/plugins/hooks/registry.py
register
¶
Register a hook for its events with priority ordering
Source code in ccproxy/core/plugins/hooks/registry.py
unregister
¶
Remove a hook from all events
Source code in ccproxy/core/plugins/hooks/registry.py
get
¶
list
¶
Get summary of all registered hooks organized by event.
Returns:
| Type | Description |
|---|---|
dict[str, list[dict[str, Any]]]
|
Dictionary mapping event names to lists of hook info |
Source code in ccproxy/core/plugins/hooks/registry.py
has
¶
clear
¶
Clear all registered hooks and reset ordering (testing or shutdown).