Documentation ¶
Index ¶
- func CreateNewParkiran(mongoconn *mongo.Database, collection string, parkirandata Parkiran) (*mongo.InsertOneResult, error)
- func DeleteParkiran(mongoconn *mongo.Database, collection string, parkiranID int) (*mongo.DeleteResult, error)
- func GCFCreateParkiran(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFDeleteParkiran(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFGetAllParkiran(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFGetAllParkiranID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFPostParkiran(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFReturnStruct(DataStuct any) string
- func GCFUpdateParkiran(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GetConnectionMongo(MONGOSTRING, dbname string) (*mongo.Database, error)
- func InsertParkiranData(db *mongo.Database, collectionName string, parkiranData Parkiran) error
- func InsertParkiranDataToDB(db *mongo.Database, collectionName string, parkiranData Parkiran) error
- func MongoConnect(MONGOSTRINGENV, dbname string) *mongo.Database
- func ReturnStringStruct(Data any) string
- func SaveQRCodeToMongoDB(database *mongo.Database, collectionName string, qrCode []byte) error
- func SetConnection(MONGOSTRINGENV, dbname string) (*mongo.Database, error)
- func UpdateParkiran(mongoconn *mongo.Database, collection string, parkiranID int, ...) (*mongo.UpdateResult, error)
- type Credential
- type Notifikasi
- type Parkiran
- type Prodi
- type RequestParkiran
- type Response
- type ResponseBack
- type ResponseParkiran
- type Time
- type Updated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateNewParkiran ¶
func CreateNewParkiran(mongoconn *mongo.Database, collection string, parkirandata Parkiran) (*mongo.InsertOneResult, error)
Parkiran
func DeleteParkiran ¶
func GCFCreateParkiran ¶
func GCFDeleteParkiran ¶
Delete Parkiran
func GCFGetAllParkiran ¶
Get All Parkiran
func GCFGetAllParkiranID ¶
Get All Parkiran By Id
func GCFPostParkiran ¶
GCFPostParkiran is an example of an HTTP request handler function
func GCFReturnStruct ¶
func GCFUpdateParkiran ¶
Update Parkiran
func GetConnectionMongo ¶
func InsertParkiranData ¶
func InsertParkiranDataToDB ¶
func MongoConnect ¶
func ReturnStringStruct ¶
func SaveQRCodeToMongoDB ¶
SaveQRCodeToMongoDB simulates the function to save the generated QR code to MongoDB
func UpdateParkiran ¶
Types ¶
type Credential ¶
type Notifikasi ¶
type Parkiran ¶
type Parkiran struct { ID primitive.ObjectID `bson:"_id,omitempty" ` ParkiranId int `json:"parkiranid" bson:"parkiranid"` Nama string `json:"nama" bson:"nama"` NPM string `json:"npm" bson:"npm"` Prodi string `json:"prodi" bson:"prodi"` NamaKendaraan string `json:"namakendaraan" bson:"namakendaraan"` NomorKendaraan string `bson:"nomorkendaraan,omitempty" json:"nomorkendaraan,omitempty"` JenisKendaraan string `json:"jeniskendaraan,omitempty" bson:"jeniskendaraan,omitempty"` }
func GetAllParkiran ¶
type RequestParkiran ¶
type RequestParkiran struct {
Parkiranid string `json:"parkiranid"`
}
type Response ¶
type Response struct { Status bool `json:"status" bson:"status"` Message string `json:"message" bson:"message"` Data interface{} `json:"data" bson:"data"` }
func CreateResponse ¶
type ResponseBack ¶
type ResponseParkiran ¶
Click to show internal directories.
Click to hide internal directories.