Documentation ¶
Index ¶
- Variables
- func ChangePassword(db *mongo.Database, col string, userdata model.User) (user model.User, status bool, err error)
- func CheckPasswordHash(password, hash string) bool
- func DeleteTodo(db *mongo.Database, col string, _id primitive.ObjectID) (status bool, err error)
- func DeleteUser(db *mongo.Database, col string, userdata model.User) (status bool, err error)
- func GCFHandlerChangePassword(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerDeleteTodo(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerDeleteUser(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetAllUser(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFHandlerGetTodo(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetTodoListByUser(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetUserByUsername(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFHandlerInsertTodo(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerLogIn(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerRegister(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFHandlerUpdateTodo(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerUpdateUser(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFReturnStruct(DataStuct any) string
- func GenerateUID(len int) (string, error)
- func GetAllUser(db *mongo.Database, col string) (userlist []model.User, err error)
- func GetTodoFromID(db *mongo.Database, col string, _id primitive.ObjectID) (todo model.Todo, err error)
- func GetTodoFromUsername(db *mongo.Database, col string, username string) (todo []model.Todo, err error)
- func GetTodoList(db *mongo.Database, col string) (todo []model.Todo, err error)
- 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, todoDoc model.Todo, uid string) (insertedID primitive.ObjectID, err error)
- func LogIn(db *mongo.Database, col string, userdata model.User) (user model.User, status bool, err error)
- func MongoConnect(MONGOCONNSTRINGENV, dbname string) *mongo.Database
- func Register(db *mongo.Database, col string, userdata model.User) error
- func UpdateTodo(db *mongo.Database, col string, todo model.Todo) (todos model.Todo, status bool, err error)
- func UpdateUser(db *mongo.Database, col string, userdata model.User) (user model.User, status bool, err error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Responsed model.Credential Response model.TodoResponse )
Functions ¶
func ChangePassword ¶ added in v0.1.5
func CheckPasswordHash ¶
func DeleteTodo ¶ added in v0.2.5
func DeleteUser ¶ added in v0.1.5
func GCFHandlerChangePassword ¶ added in v0.1.5
func GCFHandlerDeleteTodo ¶ added in v0.2.5
func GCFHandlerDeleteUser ¶ added in v0.1.5
func GCFHandlerGetAllUser ¶ added in v0.2.6
func GCFHandlerGetAllUser(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
user
func GCFHandlerGetTodo ¶ added in v0.2.5
func GCFHandlerGetTodoListByUser ¶ added in v0.2.81
func GCFHandlerGetUserByUsername ¶ added in v0.2.7
func GCFHandlerInsertTodo ¶ added in v0.2.5
func GCFHandlerLogIn ¶ added in v0.0.9
func GCFHandlerRegister ¶ added in v0.0.9
func GCFHandlerUpdateTodo ¶ added in v0.2.5
func GCFHandlerUpdateUser ¶ added in v0.1.6
func GCFReturnStruct ¶
func GenerateUID ¶ added in v0.2.809
func GetAllUser ¶
func GetTodoFromID ¶
func GetTodoFromUsername ¶ added in v0.2.8
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, todoDoc model.Todo, uid string) (insertedID primitive.ObjectID, err error)
todo
func MongoConnect ¶ added in v0.0.9
func UpdateTodo ¶ added in v0.2.5
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.