(ids []string)
| 122 | } |
| 123 | |
| 124 | func LoadNodes(ids []string) (n Nodes, err error) { |
| 125 | if _, err = dbFind(bson.M{"id": bson.M{"$in": ids}}, &n, "", nil); err == nil { |
| 126 | return n, err |
| 127 | } |
| 128 | return nil, err |
| 129 | } |
| 130 | |
| 131 | func ReloadFromDisk(path string) (err error) { |
| 132 | id := filepath.Base(path) |