Versions in this module Expand all Collapse all v0 v0.0.1 Jan 19, 2024 Changes in this version + func CheckPasswordHash(password, hash string) bool + func DeleteDataLapangan(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func DeleteLapangan(db *mongo.Database, col string, _id primitive.ObjectID) (status bool, err error) + func GCFReturnStruct(DataStuct any) string + func GetAllDataLapangan(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func GetDataLapanganByID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func HashPassword(password string) (string, error) + func InsertLapangan(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func InsertOneDoc(db *mongo.Database, col string, docs interface{}) (insertedID primitive.ObjectID, err error) + func MongoConnect(MONGOCONNSTRINGENV, dbname string) *mongo.Database + func Register(db *mongo.Database, col string, userdata User) error + func UpdateDataLapangan(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + func UserLogin(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string + type Credential struct + Message string + Status int + type Lapangan struct + Deskripsi string + Gambar string + Harga string + ID primitive.ObjectID + Nama_Lapangan string + func GetAllLapangan(db *mongo.Database, col string) (lapangan []Lapangan, err error) + func GetLapanganByID(db *mongo.Database, col string, _id primitive.ObjectID) (lapangan Lapangan, err error) + func InsertLapang(db *mongo.Database, col string, lapangan Lapangan) (docs Lapangan, err error) + func UpdateLapangan(db *mongo.Database, col string, _id primitive.ObjectID, lapangan Lapangan) (docs Lapangan, err error) + type Response struct + Message string + Status int + type User struct + Confirm_Password string + ID primitive.ObjectID + Password string + Username string + func Login(db *mongo.Database, col string, userdata User) (user User, status bool, err error)