Documentation ¶
Index ¶
- Variables
- func ChangePassword(db *mongo.Database, col string, userdata model.User) (user model.User, status bool, err error)
- func CheckCategory(db *mongo.Database, col string, category string) (bool, error)
- func CheckPasswordHash(password, hash string) bool
- func DeleteTodo(db *mongo.Database, col string, _id primitive.ObjectID) (bool, error)
- func DeleteUser(db *mongo.Database, col string, userdata model.User) (bool, 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 GCFHandlerGetAllTodoList(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetAllUser(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetCategory(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetIsDone(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetLogTodo(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetLogTodoList(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetTodo(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetTodoByCategory(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetTodoListByUser(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetUserByID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFHandlerGetUserByUsername(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFHandlerGetUserFromToken(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerInsertTodo(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerIsDone(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 GetCategory(db *mongo.Database, col string) (category []model.Categories, err error)
- func GetLogAllUser(db *mongo.Database, col string) (log []model.LogUser, err error)
- func GetLogTodoFromUID(db *mongo.Database, col, userid string) (log []model.LogTodo, err error)
- func GetLogTodoList(db *mongo.Database, col string) (log []model.LogTodo, err error)
- func GetLogUserFromUID(db *mongo.Database, col, userid string) (log []model.LogUser, err error)
- func GetTodoDone(db *mongo.Database, col string) (todo []model.TodoClear, err error)
- func GetTodoFromCategory(db *mongo.Database, col string, category string) (todo []model.Todo, err error)
- func GetTodoFromID(db *mongo.Database, col string, _id primitive.ObjectID) (todo model.Todo, err error)
- func GetTodoFromToken(db *mongo.Database, col string, uid 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 GetUserFromRole(db *mongo.Database, col string, role string) (userlist []model.User, err error)
- func GetUserFromToken(db *mongo.Database, col string, uid string) (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 InsertCategory(db *mongo.Database, col string, categoryDoc model.Categories) (insertedID primitive.ObjectID, err 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 LogTodo(db *mongo.Database, col string, todoID primitive.ObjectID, ...) error
- func LogUser(db *mongo.Database, col string, id primitive.ObjectID, originalUser model.User, ...) error
- func MongoConnect(MONGOCONNSTRINGENV, dbname string) *mongo.Database
- func Register(db *mongo.Database, col string, userdata model.User) error
- func TodoClear(db *mongo.Database, col string, done model.TodoClear) (bool, error)
- func UpdateTodo(db *mongo.Database, col string, todo model.Todo) (model.Todo, bool, error)
- func UpdateUser(db *mongo.Database, col string, userdata model.User) (model.User, bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Responsed model.Credential Response model.TodoResponse Response2 model.TodoClearResponse Response3 model.LogTodoResponse )
Functions ¶
func ChangePassword ¶ added in v0.1.5
func CheckCategory ¶ added in v0.3.22
func CheckPasswordHash ¶
func DeleteTodo ¶ added in v0.2.5
func DeleteUser ¶ added in v0.1.5
func GCFHandlerChangePassword ¶ added in v0.1.5
func GCFHandlerChangePassword(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
not updated yet
func GCFHandlerDeleteTodo ¶ added in v0.2.5
func GCFHandlerDeleteUser ¶ added in v0.1.5
func GCFHandlerDeleteUser(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
not updated yet
func GCFHandlerGetAllTodoList ¶ added in v0.2.909
func GCFHandlerGetAllTodoList(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
todo
func GCFHandlerGetAllUser ¶ added in v0.2.6
func GCFHandlerGetAllUser(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
for admin user
func GCFHandlerGetCategory ¶ added in v0.3.22
func GCFHandlerGetIsDone ¶ added in v0.3.22
func GCFHandlerGetLogTodo ¶ added in v0.3.22
func GCFHandlerGetLogTodo(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
log for user not used yet
func GCFHandlerGetLogTodoList ¶ added in v0.3.22
func GCFHandlerGetLogTodoList(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
log todo not used yet
func GCFHandlerGetTodo ¶ added in v0.2.5
func GCFHandlerGetTodoByCategory ¶ added in v0.3.22
func GCFHandlerGetTodoListByUser ¶ added in v0.2.81
func GCFHandlerGetTodoListByUser(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
todo
func GCFHandlerGetUserByID ¶ added in v0.2.903
func GCFHandlerGetUserByUsername ¶ added in v0.2.7
func GCFHandlerGetUserByUsername(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
for user user not used yet
func GCFHandlerGetUserFromToken ¶ added in v0.2.903
func GCFHandlerInsertTodo ¶ added in v0.2.5
func GCFHandlerIsDone ¶ added in v0.3.22
func GCFHandlerIsDone(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
isDone
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 GCFHandlerUpdateUser(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
not updated yet
func GCFReturnStruct ¶
func GetCategory ¶ added in v0.3.22
func GetLogAllUser ¶ added in v0.3.22
not used yet
func GetLogTodoFromUID ¶ added in v0.3.22
func GetLogTodoList ¶ added in v0.3.22
get log
func GetLogUserFromUID ¶ added in v0.3.22
not used yet
func GetTodoDone ¶ added in v0.3.22
func GetTodoFromCategory ¶ added in v0.3.22
func GetTodoFromID ¶
func GetTodoFromToken ¶ added in v0.2.827
func GetUserFromEmail ¶ added in v0.0.9
func GetUserFromID ¶ added in v0.0.9
func GetUserFromRole ¶ added in v0.3.22
func GetUserFromRole(db *mongo.Database, col string, role string) (userlist []model.User, err error)
admin
func GetUserFromToken ¶ added in v0.2.903
func GetUserFromUsername ¶
func HashPassword ¶
func InsertCategory ¶ added in v0.3.22
func InsertCategory(db *mongo.Database, col string, categoryDoc model.Categories) (insertedID primitive.ObjectID, err error)
category
func InsertOneDoc ¶
func InsertTodo ¶
func InsertTodo(db *mongo.Database, col string, todoDoc model.Todo, uid string) (insertedID primitive.ObjectID, err error)
todo
func LogTodo ¶ added in v0.3.22
func LogTodo(db *mongo.Database, col string, todoID primitive.ObjectID, originalTodo model.Todo, updatedTodo model.Todo) error
log
func MongoConnect ¶ added in v0.0.9
func UpdateTodo ¶ added in v0.2.5
update todo with log
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.