Documentation ¶
Index ¶
- Variables
- 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)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Responsed model.Credential
)
Functions ¶
func CheckPasswordHash ¶
func DeleteRegistrasi ¶
func DeleteReservasi ¶
func GCFHandlerGetAll ¶
func GCFHandlerInsertReservasi ¶
func GCFHandlerInsertReservasi(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
reservasi
func GCFHandlerLogin ¶
func GCFHandlerLogin(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
login
func GCFReturnStruct ¶
func GetAllDocs ¶
crud
func GetAllRegistrasi ¶
func GetAllReservasi ¶
func GetUserFromUsername ¶
func HashPassword ¶
func InsertOneDoc ¶
func InsertRegistrasi ¶
func InsertRegistrasi(db *mongo.Database, col string, nama_lengkap string, no_telp string, ttl string, nim string, alamat string) (insertedID primitive.ObjectID, err error)
registrasi
func InsertReservasi ¶
func InsertReservasi(db *mongo.Database, col string, nama string, no_telp string, ttl string, status string, keluhan string) (insertedID primitive.ObjectID, err error)
reservasi
func Login ¶
func Login(db *mongo.Database, col string, insertedDoc model.User) (user model.User, Status bool, err error)
login
func MongoConnect ¶
func UpdateOneDoc ¶
func UpdateRegistrasi ¶
func UpdateRegistrasi(db *mongo.Database, doc model.Registrasi) (err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.