UpdateStatus updates the status of a certain vertex
(key string, status ServiceStatus)
| 362 | |
| 363 | // UpdateStatus updates the status of a certain vertex |
| 364 | func (g *Graph) UpdateStatus(key string, status ServiceStatus) { |
| 365 | g.lock.Lock() |
| 366 | defer g.lock.Unlock() |
| 367 | g.Vertices[key].Status = status |
| 368 | } |
| 369 | |
| 370 | // FilterChildren returns children of a certain vertex that are in a certain status |
| 371 | func (g *Graph) FilterChildren(key string, status ServiceStatus) []*Vertex { |