Documentation ¶
Index ¶
- 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
- type Lapangan
- 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
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func DeleteDataLapangan ¶
func DeleteLapangan ¶
func GCFReturnStruct ¶
func GetAllDataLapangan ¶
lapangan
func GetDataLapanganByID ¶
func HashPassword ¶
func InsertLapangan ¶
func InsertOneDoc ¶
func MongoConnect ¶
func UpdateDataLapangan ¶
Types ¶
type Credential ¶
type Lapangan ¶
type Lapangan struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Nama_Lapangan string `bson:"nama_lapangan,omitempty" json:"nama_lapangan,omitempty"` Harga string `bson:"harga,omitempty" json:"harga,omitempty"` Deskripsi string `bson:"deskripsi,omitempty" json:"deskripsi,omitempty"` Gambar string `bson:"gambar,omitempty" json:"gambar,omitempty"` }
func GetAllLapangan ¶
obat
func GetLapanganByID ¶
func InsertLapang ¶
Click to show internal directories.
Click to hide internal directories.