Versions in this module Expand all Collapse all v0 v0.0.0 Nov 4, 2020 Changes in this version + func AddSettings() (*mongo.InsertOneResult, error) + func AddUser(name string, email string, passwd string) (*mongo.InsertOneResult, error) + func CheckEmailAndPassword(email string, password string) error + func Connect() (*mongo.Client, error) + func DeleteSettings(objID *primitive.ObjectID) (*mongo.DeleteResult, error) + func DeleteUser(email string) error + type User struct + Email string + Name string + Password string + SettingsID primitive.ObjectID + func GetUserByEmail(email string) (User, error) + type UserSettings struct + Enable2StepsVerif bool + func GetSettings(objID *primitive.ObjectID) (UserSettings, error)