ClearMappings removes everything from remap and childParentMap
()
| 251 | |
| 252 | // ClearMappings removes everything from remap and childParentMap |
| 253 | func ClearMappings() { |
| 254 | mu.Lock() |
| 255 | defer mu.Unlock() |
| 256 | remap = map[string]string{} |
| 257 | childParentMap = map[string]string{} |
| 258 | } |
| 259 | |
| 260 | // ClearMappingsPrefix deletes all mappings to parents with given prefix |
| 261 | // |
searching dependent graphs…