GetEndpoint returns an endpoint module from global registry. Nil is returned if no module with specified name is registered.
(name string)
| 98 | // |
| 99 | // Nil is returned if no module with specified name is registered. |
| 100 | func GetEndpoint(name string) FuncNewEndpoint { |
| 101 | modulesLock.RLock() |
| 102 | defer modulesLock.RUnlock() |
| 103 | |
| 104 | return endpoints[name] |
| 105 | } |
| 106 | |
| 107 | // RegisterEndpoint registers an endpoint module. |
| 108 | // |