Documentation ¶
Index ¶
- Variables
- func GetAllDocs(db *mongo.Database, col string, docs interface{}) interface{}
- func GetUserFromEmail(email string, db *mongo.Database, col string) (result model.User, err error)
- func InsertOneDoc(db *mongo.Database, col string, doc interface{}) (insertedID primitive.ObjectID, err error)
- func LogIn(db *mongo.Database, col string, insertedDoc model.User) (userName string, err error)
- func MongoConnect() *mongo.Database
- func SignUp(db *mongo.Database, col string, insertedDoc model.User) (insertedID primitive.ObjectID, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func GetAllDocs ¶ added in v0.0.2
func GetUserFromEmail ¶
func InsertOneDoc ¶
func MongoConnect ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.