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

Function taskPluginHasFactory

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

Source from the content-addressed store, hash-verified

516}
517
518func taskPluginHasFactory(key string) bool {
519 for _, meta := range jsplugin.DefaultRegistry.Snapshot().Factory {
520 if meta.Key == key {
521 return true
522 }
523 }
524 return false
525}
526
527func GetTaskPluginMarketplaceSources(c *gin.Context) {
528 common.ApiSuccess(c, setting.GetTaskPluginMarketplaceSources())

Callers 2

DeleteTaskPluginVersionFunction · 0.85
SetTaskPluginStatusFunction · 0.85

Calls 1

SnapshotMethod · 0.45

Tested by

no test coverage detected