func (this Room) Init() { Db := db.MgoDb{} Db.Init() Db.Index("room", model.Room{}.Indexes()) Db.Close() }