Skip to content

Commit af2a853

Browse files
author
Manuel Morejón
committed
Merge branch 'master' of github.com:mmorejon/microservices-docker-go-mongodb
2 parents ae92668 + f0c3673 commit af2a853

File tree

8 files changed

+8
-8
lines changed

8 files changed

+8
-8
lines changed

bookings/common/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func loadConfigFromEnvironment(appConfig *configuration) {
9595
// Session holds the mongodb session for database access
9696
var session *mgo.Session
9797

98-
// Get database session
98+
// GetSession gets database session
9999
func GetSession() *mgo.Session {
100100
if session == nil {
101101
var err error

bookings/controllers/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
2020
func (c *Context) DbCollection(name string) *mgo.Collection {
2121
return c.MongoSession.DB(common.AppConfig.Database).C(name)
2222
}

movies/common/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func loadConfigFromEnvironment(appConfig *configuration) {
9595
// Session holds the mongodb session for database access
9696
var session *mgo.Session
9797

98-
// Get database session
98+
// GetSession gets database session
9999
func GetSession() *mgo.Session {
100100
if session == nil {
101101
var err error

movies/controllers/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
2020
func (c *Context) DbCollection(name string) *mgo.Collection {
2121
return c.MongoSession.DB(common.AppConfig.Database).C(name)
2222
}

showtimes/common/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func loadConfigFromEnvironment(appConfig *configuration) {
9595
// Session holds the mongodb session for database access
9696
var session *mgo.Session
9797

98-
// Get database session
98+
// GetSession gets database session
9999
func GetSession() *mgo.Session {
100100
if session == nil {
101101
var err error

showtimes/controllers/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
2020
func (c *Context) DbCollection(name string) *mgo.Collection {
2121
return c.MongoSession.DB(common.AppConfig.Database).C(name)
2222
}

users/common/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func loadConfigFromEnvironment(appConfig *configuration) {
9595
// Session holds the mongodb session for database access
9696
var session *mgo.Session
9797

98-
// Get database session
98+
// GetSession gets database session
9999
func GetSession() *mgo.Session {
100100
if session == nil {
101101
var err error

users/controllers/context.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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
2020
func (c *Context) DbCollection(name string) *mgo.Collection {
2121
return c.MongoSession.DB(common.AppConfig.Database).C(name)
2222
}

0 commit comments

Comments
 (0)