MCPcopy
hub / github.com/apache/devlake / InitPlugins

Function InitPlugins

backend/core/plugin/hub.go:81–92  ·  view source on GitHub ↗
(basicRes context.BasicRes)

Source from the content-addressed store, hash-verified

79}
80
81func InitPlugins(basicRes context.BasicRes) {
82 for pluginName, pluginMeta := range plugins {
83 if pluginEntry, ok := pluginMeta.(PluginInit); ok {
84 err := pluginEntry.Init(basicRes)
85 if err != nil {
86 panic(fmt.Errorf("failed to initialize plugin %v due to %w", pluginName, err))
87 }
88 } else {
89 basicRes.GetLogger().Info("plugin: %s doesn't implement 'PluginInit', it will be skipped.", pluginName)
90 }
91 }
92}

Callers

nothing calls this directly

Calls 3

InitMethod · 0.65
InfoMethod · 0.65
GetLoggerMethod · 0.65

Tested by

no test coverage detected