feat: allow enabling all plugins into a channel
This commit is contained in:
parent
899ac49336
commit
3b09a9dd47
10 changed files with 915 additions and 17 deletions
|
@ -47,6 +47,19 @@ func GetAvailablePlugins() map[string]model.Plugin {
|
|||
return result
|
||||
}
|
||||
|
||||
// GetAvailablePluginIDs returns a slice of all registered plugin IDs
|
||||
func GetAvailablePluginIDs() []string {
|
||||
pluginsMu.RLock()
|
||||
defer pluginsMu.RUnlock()
|
||||
|
||||
result := make([]string, 0, len(plugins))
|
||||
for pluginID := range plugins {
|
||||
result = append(result, pluginID)
|
||||
}
|
||||
|
||||
return result
|
||||
}
|
||||
|
||||
// ClearRegistry clears all registered plugins (for testing)
|
||||
func ClearRegistry() {
|
||||
pluginsMu.Lock()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue