Versions in this module Expand all Collapse all v0 v0.0.4 Dec 4, 2023 v0.0.3 Dec 4, 2023 Changes in this version + var Responsed model.Credential + func CheckPasswordHash(password, hash string) bool + func DeleteOneDoc(_id primitive.ObjectID, db *mongo.Database, col string) error + func DeleteRegistrasi(db *mongo.Database, col string, _id primitive.ObjectID) (status bool, err error) + func DeleteReservasi(db *mongo.Database, col string, _id primitive.ObjectID) (status bool, err error) + func GCFHandlerDeleteReservasi(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string + func GCFHandlerGetAll(MONGOCONNSTRINGENV, dbname, col string, docs interface{}) string + func GCFHandlerGetAllReservasi(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string + func GCFHandlerInsertReservasi(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string + func GCFHandlerLogin(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string + func GCFHandlerUpdateReservasi(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string + func GCFReturnStruct(DataStuct any) string + func GetAllDocs(db *mongo.Database, col string, docs interface{}) interface + func GetAllRegistrasi(db *mongo.Database, col string) (registrasi []model.Registrasi, err error) + func GetAllReservasi(db *mongo.Database, col string) (reservasi []model.Reservasi, 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, doc interface{}) (insertedID primitive.ObjectID, err error) + func InsertRegistrasi(db *mongo.Database, col string, nama_lengkap string, no_telp string, ...) (insertedID primitive.ObjectID, err error) + func InsertReservasi(db *mongo.Database, col string, nama string, no_telp string, ttl string, ...) (insertedID primitive.ObjectID, err error) + func Login(db *mongo.Database, col string, insertedDoc model.User) (user model.User, Status bool, err error) + func MongoConnect(MongoString, dbname string) *mongo.Database + func UpdateOneDoc(id primitive.ObjectID, db *mongo.Database, col string, doc interface{}) (err error) + func UpdateRegistrasi(db *mongo.Database, doc model.Registrasi) (err error) + func UpdateReservasi(db *mongo.Database, doc model.Reservasi) (err error)