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

Function AdminGet

shock-server/user/user.go:89–95  ·  view source on GitHub ↗
(u *Users)

Source from the content-addressed store, hash-verified

87}
88
89func AdminGet(u *Users) (err error) {
90 session := db.Connection.Session.Copy()
91 defer session.Close()
92 c := session.DB(conf.MONGODB_DATABASE).C("Users")
93 err = c.Find(nil).All(u)
94 return
95}
96
97func (u *User) SetMongoInfo() (err error) {
98 if uu, admin, err := dbGetInfo(u.Username); err == nil {

Callers

nothing calls this directly

Calls 2

AllMethod · 0.80
CloseMethod · 0.65

Tested by

no test coverage detected