Documentation ¶
Index ¶
- Variables
- func DeleteDocsByID(_id primitive.ObjectID, db *mongo.Database, col string) error
- func GetAllDocs(db *mongo.Database, col string, docs interface{}) interface{}
- func GetDocFromID(_id primitive.ObjectID, db *mongo.Database, col string, doc interface{}) (interface{}, error)
- func GetDocFromID2(_id primitive.ObjectID, db *mongo.Database, col string) (doc model.User, err error)
- 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) (email string, err error)
- func MongoConnect() *mongo.Database
- func SignUp(db *mongo.Database, col string, insertedDoc model.User) (insertedID primitive.ObjectID, err error)
- func UpdateOneDoc(db *mongo.Database, col string, id primitive.ObjectID, doc interface{}) (err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var MongoString string = os.Getenv("MONGOSTRING")
Functions ¶
func DeleteDocsByID ¶ added in v0.0.5
func GetAllDocs ¶ added in v0.0.2
func GetDocFromID ¶ added in v0.0.5
func GetDocFromID2 ¶ added in v0.0.5
func GetUserFromEmail ¶
func InsertOneDoc ¶
func MongoConnect ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.