MCPcopy Index your code
hub / github.com/APIParkLab/APIPark / Register

Method Register

module/monitor/driver/manager.go:27–29  ·  view source on GitHub ↗
(driver IDriver)

Source from the content-addressed store, hash-verified

25}
26
27func (m *Manager) Register(driver IDriver) {
28 m.drivers.Set(driver.Name(), driver)
29}
30
31func (m *Manager) Get(name string) (IDriver, bool) {
32 return m.drivers.Get(name)

Callers 10

mainFunction · 0.45
initFunction · 0.45
OnInitMethod · 0.45
AddProviderMethod · 0.45
RegisterFunction · 0.45
initFunction · 0.45
initFunction · 0.45
initFunction · 0.45
initFunction · 0.45
initFunction · 0.45

Calls 2

SetMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected