MCPcopy Create free account
hub / github.com/QuantumNous/new-api / taskPluginHasFactory

Function taskPluginHasFactory

controller/task_plugin.go:575–582  ·  view source on GitHub ↗
(key string)

Source from the content-addressed store, hash-verified

573}
574
575func taskPluginHasFactory(key string) bool {
576 for _, meta := range jsplugin.DefaultRegistry.Snapshot().Factory {
577 if meta.Key == key {
578 return true
579 }
580 }
581 return false
582}
583
584func GetTaskPluginMarketplaceSources(c *gin.Context) {
585 common.ApiSuccess(c, setting.GetTaskPluginMarketplaceSources())

Callers 2

DeleteTaskPluginVersionFunction · 0.85
SetTaskPluginStatusFunction · 0.85

Calls 1

SnapshotMethod · 0.45

Tested by

no test coverage detected