Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseSession ¶
func NewSession ¶
func NewSession(name string) *DatabaseSession
Connect to the local MongoDB and set up the database.
func (*DatabaseSession) Database ¶
func (session *DatabaseSession) Database(c *gin.Context)
http://blog.mongodb.org/post/80579086742/running-mongodb-queries-concurrently-with-go Request a socket connection from the session to process our query. Close the session when the goroutine exits and put the connection back into the pool.
Click to show internal directories.
Click to hide internal directories.