Documentation ¶
Index ¶
- func AddReminder(username, phonenumber, title string, remindAt time.Time) error
- func CheckDocExist(db *mongo.Database, col string, filter any) (bool, error)
- func CheckPasswordHash(password, hash string) bool
- func DeleteManyDoc(db *mongo.Database, col string, filter any) (*mongo.DeleteResult, error)
- func DeleteOneDoc(db *mongo.Database, col string, filter any) error
- func FindOneAndUpdateDoc(db *mongo.Database, col string, filter, update, result any) error
- func GenerateUID(len int) (string, error)
- func GetManyDoc(db *mongo.Database, col string, filter, result any) error
- func GetOneDoc(db *mongo.Database, col string, filter, result any) error
- func HashPassword(password string) (string, error)
- func InsertOneDoc(db *mongo.Database, col string, docs any) (insertedID primitive.ObjectID, err error)
- func Log(db *mongo.Database, col string, uid primitive.ObjectID, original, updated any) error
- func SaveFileToGithub(usernameGhp, emailGhp, repoGhp, path string, r *http.Request) (string, error)
- func SendWhatsAppConfirmation(message, phonenumber string) error
- func UpdateOneDoc(db *mongo.Database, col string, filter, update any) (*mongo.UpdateResult, error)
- func ValidatePhoneNumber(phoneNumber string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckDocExist ¶
check document exist in collection
func DeleteManyDoc ¶ added in v0.0.6
delete many document in collection
func DeleteOneDoc ¶
delete one document in collection
func FindOneAndUpdateDoc ¶
find one and update document in collection
func GetManyDoc ¶
get many document from collection
func InsertOneDoc ¶
func InsertOneDoc(db *mongo.Database, col string, docs any) (insertedID primitive.ObjectID, err error)
insert one document to collection
func SaveFileToGithub ¶
saves file to github
func UpdateOneDoc ¶
update one document in collection
func ValidatePhoneNumber ¶
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.