Get returns module from global registry. This function does not return endpoint-type modules, use GetEndpoint for that. Nil is returned if no module with specified name is registered.
(name string)
| 88 | // that. |
| 89 | // Nil is returned if no module with specified name is registered. |
| 90 | func Get(name string) FuncNewModule { |
| 91 | modulesLock.RLock() |
| 92 | defer modulesLock.RUnlock() |
| 93 | |
| 94 | return modules[name] |
| 95 | } |
| 96 | |
| 97 | // GetEndpoint returns an endpoint module from global registry. |
| 98 | // |
no outgoing calls
no test coverage detected