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 GetTodoFromID(db *mongo.Database, col string, id primitive.ObjectID) (todo model.Todo)
- func GetTodoList(db *mongo.Database, col string) (todolist model.TodoList)
- 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 InsertOneDoc(db *mongo.Database, col string, docs interface{}) (insertedID primitive.ObjectID, err error)
- func InsertTodo(db *mongo.Database, col string, todo model.Todo) (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 ¶ added in v0.1.5
func CheckPasswordHash ¶
func DeleteUser ¶ added in v0.1.5
func GCFHandler ¶
func GCFHandlerChangePassword ¶ added in v0.1.5
func GCFHandlerDeleteUser ¶ added in v0.1.5
func GCFHandlerGetUser ¶ added in v0.1.4
func GCFHandlerLogIn ¶ added in v0.0.9
func GCFHandlerRegister ¶ added in v0.0.9
func GCFHandlerUpdateUser ¶ added in v0.1.6
func GCFReturnStruct ¶
func GetTodoFromID ¶
func GetUserFromEmail ¶ added in v0.0.9
func GetUserFromID ¶ added in v0.0.9
func GetUserFromUsername ¶
func HashPassword ¶
func InsertOneDoc ¶
func InsertTodo ¶
func InsertTodo(db *mongo.Database, col string, todo model.Todo) (insertedID primitive.ObjectID, err error)
todo
func MongoConnect ¶ added in v0.0.9
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.