Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoOpts = options.Replace().SetUpsert(true)
Functions ¶
func GetTokenColl ¶
GetTokenColl returns the resumption tokens collection. It also creates (idempotently) the index on the “tokens” field in that collection.
func InitializeMongo ¶
InitializeMongo makes the connection to the MongoDB, creates the database “gepris” with the collection “projects” and the index for the “number” field. Everything of this that already exists is left as is.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.