MCPcopy Index your code
hub / github.com/apache/devlake / RegisterPlugin

Function RegisterPlugin

backend/core/plugin/hub.go:36–44  ·  view source on GitHub ↗
(name string, plugin PluginMeta)

Source from the content-addressed store, hash-verified

34)
35
36func RegisterPlugin(name string, plugin PluginMeta) errors.Error {
37 pluginMutex.Lock()
38 defer pluginMutex.Unlock()
39 if plugins == nil {
40 plugins = make(map[string]PluginMeta)
41 }
42 plugins[name] = plugin
43 return nil
44}
45
46func GetPlugin(name string) (PluginMeta, errors.Error) {
47 if plugins == nil {

Callers 1

TestHubFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestHubFunction · 0.68