File tree Expand file tree Collapse file tree 8 files changed +8
-8
lines changed
Expand file tree Collapse file tree 8 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ func loadConfigFromEnvironment(appConfig *configuration) {
9595// Session holds the mongodb session for database access
9696var session * mgo.Session
9797
98- // Get database session
98+ // GetSession gets database session
9999func GetSession () * mgo.Session {
100100 if session == nil {
101101 var err error
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ func (c *Context) Close() {
1616 c .MongoSession .Close ()
1717}
1818
19- // Returns mgo.collection for the given name
19+ // DbCollection returns mgo.collection for the given name
2020func (c * Context ) DbCollection (name string ) * mgo.Collection {
2121 return c .MongoSession .DB (common .AppConfig .Database ).C (name )
2222}
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ func loadConfigFromEnvironment(appConfig *configuration) {
9595// Session holds the mongodb session for database access
9696var session * mgo.Session
9797
98- // Get database session
98+ // GetSession gets database session
9999func GetSession () * mgo.Session {
100100 if session == nil {
101101 var err error
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ func (c *Context) Close() {
1616 c .MongoSession .Close ()
1717}
1818
19- // Returns mgo.collection for the given name
19+ // DbCollection returns mgo.collection for the given name
2020func (c * Context ) DbCollection (name string ) * mgo.Collection {
2121 return c .MongoSession .DB (common .AppConfig .Database ).C (name )
2222}
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ func loadConfigFromEnvironment(appConfig *configuration) {
9595// Session holds the mongodb session for database access
9696var session * mgo.Session
9797
98- // Get database session
98+ // GetSession gets database session
9999func GetSession () * mgo.Session {
100100 if session == nil {
101101 var err error
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ func (c *Context) Close() {
1616 c .MongoSession .Close ()
1717}
1818
19- // Returns mgo.collection for the given name
19+ // DbCollection returns mgo.collection for the given name
2020func (c * Context ) DbCollection (name string ) * mgo.Collection {
2121 return c .MongoSession .DB (common .AppConfig .Database ).C (name )
2222}
Original file line number Diff line number Diff line change @@ -95,7 +95,7 @@ func loadConfigFromEnvironment(appConfig *configuration) {
9595// Session holds the mongodb session for database access
9696var session * mgo.Session
9797
98- // Get database session
98+ // GetSession gets database session
9999func GetSession () * mgo.Session {
100100 if session == nil {
101101 var err error
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ func (c *Context) Close() {
1616 c .MongoSession .Close ()
1717}
1818
19- // Returns mgo.collection for the given name
19+ // DbCollection returns mgo.collection for the given name
2020func (c * Context ) DbCollection (name string ) * mgo.Collection {
2121 return c .MongoSession .DB (common .AppConfig .Database ).C (name )
2222}
You can’t perform that action at this time.
0 commit comments