MCPcopy
hub / github.com/PatchMon/PatchMon / Register

Method Register

agent-source-code/internal/integrations/manager.go:40–45  ·  view source on GitHub ↗

Register adds an integration to the manager

(integration Integration)

Source from the content-addressed store, hash-verified

38
39// Register adds an integration to the manager
40func (m *Manager) Register(integration Integration) {
41 m.mu.Lock()
42 defer m.mu.Unlock()
43 m.integrations = append(m.integrations, integration)
44 m.logger.WithField("integration", integration.Name()).Debug("Registered integration")
45}
46
47// DiscoverIntegrations checks which integrations are available and returns them
48// Only returns integrations that are both available and enabled (if enabled checker is set)

Callers 2

sendIntegrationDataFunction · 0.95

Calls 1

NameMethod · 0.65

Tested by

no test coverage detected