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

Function Init

backend/server/services/init.go:116–126  ·  view source on GitHub ↗

Init the services module Should not be called concurrently

()

Source from the content-addressed store, hash-verified

114// Init the services module
115// Should not be called concurrently
116func Init() {
117 InitResources()
118
119 // lock the database to avoid multiple devlake instances from sharing the same one
120 lockDatabase()
121
122 // now, load the plugins
123 errors.Must(runner.LoadPlugins(basicRes))
124 logger.Info("all plugins have been loaded")
125 registerPluginsMigrationScripts()
126}
127
128func InjectCustomService(customPipelineNotifier PipelineNotificationService, customProjectService ProjectService) errors.Error {
129 if customPipelineNotifier != nil {

Callers

nothing calls this directly

Calls 4

InitResourcesFunction · 0.85
lockDatabaseFunction · 0.85
InfoMethod · 0.65

Tested by

no test coverage detected