Remove shutdowns the service by name and removes it from its current management list
(name string)
| 36 | |
| 37 | // Remove shutdowns the service by name and removes it from its current management list |
| 38 | func (m *AppManager) Remove(name string) { |
| 39 | if currentService, ok := m.services[name]; ok { |
| 40 | currentService.Shutdown() |
| 41 | } |
| 42 | delete(m.services, name) |
| 43 | } |
| 44 | |
| 45 | // Services returns all the current Services being managed |
| 46 | func (m *AppManager) Services() []Service { |