MCPcopy Create free account
hub / github.com/MG-RAST/Shock / LoadNodes

Function LoadNodes

shock-server/node/db.go:124–129  ·  view source on GitHub ↗
(ids []string)

Source from the content-addressed store, hash-verified

122}
123
124func 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
131func ReloadFromDisk(path string) (err error) {
132 id := filepath.Base(path)

Callers

nothing calls this directly

Calls 1

dbFindFunction · 0.85

Tested by

no test coverage detected