Documentation ¶
Index ¶
- func ChangePassword(db *mongo.Database, col string, userdata model.User) (user model.User, status bool, err error)
- func CheckPasswordHash(password, hash string) bool
- func DeleteUser(db *mongo.Database, col string, username string) error
- func GCFHandler(MONGOCONNSTRINGENV, dbname, col string) string
- func GCFHandlerChangePassword(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerDeleteUser(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetUser(MONGOCONNSTRINGENV, dbname, col string, username string) string
- func GCFHandlerLogIn(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerRegister(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerUpdateUser(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFReturnStruct(DataStuct any) string
- func GetAllUser(db *mongo.Database, col string) (userlist []model.User)
- func GetCatalogFromID(db *mongo.Database, col string, id primitive.ObjectID) (catalog model.Catalog)
- func GetCatalogList(db *mongo.Database, col string) (cataloglist model.CatalogList)
- func GetUserFromEmail(db *mongo.Database, col string, email string) (user model.User, err error)
- func GetUserFromID(db *mongo.Database, col string, _id primitive.ObjectID) (user model.User, err error)
- func GetUserFromUsername(db *mongo.Database, col string, username string) (user model.User, err error)
- func HashPassword(password string) (string, error)
- func InsertCatalog(db *mongo.Database, col string, catalog model.Catalog) (insertedID primitive.ObjectID, err error)
- func InsertOneDoc(db *mongo.Database, col string, docs interface{}) (insertedID primitive.ObjectID, err error)
- func LogIn(db *mongo.Database, col string, userdata model.User) (user model.User, status bool, err error)
- func MongoConnect(MongoString, dbname string) *mongo.Database
- func Register(db *mongo.Database, col string, userdata model.User) error
- func UpdateUser(db *mongo.Database, col string, userdata model.User) (user model.User, status bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ChangePassword ¶
func CheckPasswordHash ¶
func GCFHandler ¶
func GCFHandlerDeleteUser ¶
func GCFHandlerGetUser ¶
func GCFHandlerLogIn ¶
func GCFHandlerRegister ¶
func GCFHandlerUpdateUser ¶ added in v0.0.5
func GCFReturnStruct ¶
func GetCatalogFromID ¶
func GetCatalogList ¶
func GetCatalogList(db *mongo.Database, col string) (cataloglist model.CatalogList)
func GetUserFromEmail ¶
func GetUserFromID ¶
func GetUserFromUsername ¶
func HashPassword ¶
func InsertCatalog ¶
func InsertCatalog(db *mongo.Database, col string, catalog model.Catalog) (insertedID primitive.ObjectID, err error)
catalog
func InsertOneDoc ¶
func MongoConnect ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.