NewManager creates a new Manager instance.
()
| 90 | |
| 91 | // NewManager creates a new Manager instance. |
| 92 | func NewManager() *Manager { |
| 93 | return &Manager{ |
| 94 | graph: &Graph[Status, ID]{}, |
| 95 | units: make(map[ID]Unit), |
| 96 | } |
| 97 | } |
| 98 | |
| 99 | // Register adds a unit to the manager if it is not already registered. |
| 100 | // If a Unit is already registered (per the ID field), it is not updated. |
no outgoing calls