Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Db mongo.Database
Db ...
Functions ¶
func ConnectToTestDB ¶
func ConnectToTestDB(url string)
ConnectToTestDB takes in a url string for testing purposes
Types ¶
type Database ¶
type Database struct { DBURI string `json:"dburi"` DBName string `json:"dbname"` DBUser string `json:"dbuser"` DBPassword string `json:"dbpassword"` }
Database represents the information needed to connect to a database
type UserInMongoDb ¶
type UserInMongoDb struct { ID primitive.ObjectID `bson:"_id"` Username string `bson:"username"` Password string `bson:"password"` Email string `bson:"email"` Admin bool `bson:"admin"` }
UserInMongoDb ...
var NilUser UserInMongoDb
NilUser ...0
Click to show internal directories.
Click to hide internal directories.