Documentation ¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func DeleteDataProduk(Mongoenv, dbname string, r *http.Request) string
- func DeleteOneDoc(db *mongo.Database, col string, filter bson.M) (err error)
- func DeleteProduk(db *mongo.Database, col string, _id primitive.ObjectID) (status bool, err error)
- func GCFReturnStruct(DataStuct any) string
- func GetAllData(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GetAllDocs(db *mongo.Database, col string, docs interface{}) interface{}
- func GetDataKeluhan(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GetDataReview(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GetDataTransaksi(MONGOCONNSTRINGENV, dbname, collectionname string) string
- func GetOneDataProduk(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func HashPassword(password string) (string, error)
- func InsertDataPesan(Mongoenv, dbname string, r *http.Request) string
- func InsertDataProduk(Mongoenv, dbname string, r *http.Request) string
- func InsertOneDoc(db *mongo.Database, col string, docs interface{}) (insertedID primitive.ObjectID, err error)
- func InsertPesanReview(db *mongo.Database, col string, pesandata Pesan) (insertedID primitive.ObjectID, err error)
- func InsertProduk(db *mongo.Database, col string, produkdata Produk) (insertedID primitive.ObjectID, err error)
- func InsertUser(db *mongo.Database, collection string, userdata Admin) string
- func IsPasswordValid(mongoconn *mongo.Database, collection string, userdata Admin) bool
- func Login(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func SetConnection(MONGOCONNSTRINGENV, dbname string) *mongo.Database
- func UpdateDataProduk(Mongoenv, dbname string, r *http.Request) string
- func UpdateOneDoc(db *mongo.Database, col string, filter, update interface{}) (err error)
- type Admin
- type Credential
- type Keluhan
- type Pesan
- type Produk
- type Transaksi
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func DeleteDataProduk ¶ added in v0.0.5
func DeleteProduk ¶ added in v0.0.2
func GCFReturnStruct ¶
func GetAllData ¶ added in v0.0.2
func GetAllDocs ¶
func GetDataKeluhan ¶ added in v0.2.7
func GetDataReview ¶ added in v0.2.4
func GetDataTransaksi ¶ added in v0.0.5
func GetOneDataProduk ¶ added in v0.1.4
func HashPassword ¶
func InsertDataPesan ¶ added in v0.2.4
func InsertOneDoc ¶
func InsertPesanReview ¶ added in v0.2.4
func InsertProduk ¶ added in v0.0.2
func InsertProduk(db *mongo.Database, col string, produkdata Produk) (insertedID primitive.ObjectID, err error)
Admin
func InsertUser ¶ added in v0.0.2
func IsPasswordValid ¶
func SetConnection ¶
func UpdateDataProduk ¶ added in v0.0.2
Types ¶
type Credential ¶
type Keluhan ¶ added in v0.2.7
type Keluhan struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Complaint_number int `bson:"complaint_number,omitempty" json:"complaint_number,omitempty"` User_phone string `bson:"user_phone,omitempty" json:"user_phone,omitempty"` FormattedTime string `bson:"formattedtime,omitempty" json:"formatedtime,omitempty"` Content string `bson:"content,omitempty" json:"content,omitempty"` }
type Pesan ¶ added in v0.2.4
type Produk ¶
type Produk struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Nama string `bson:"nama,omitempty" json:"nama,omitempty"` Harga string `bson:"harga,omitempty" json:"harga,omitempty"` Deskripsi string `bson:"deskripsi,omitempty" json:"deskripsi,omitempty"` Stok string `bson:"stok,omitempty" json:"stok,omitempty"` Image string `bson:"image,omitempty" json:"image,omitempty"` }
func GetAllDataProduk ¶ added in v0.0.2
func GetProdukFromID ¶ added in v0.0.2
type Transaksi ¶ added in v0.0.4
type Transaksi struct { ID primitive.ObjectID `bson:"_id,omitempty" json:"_id,omitempty"` Transaksi_number int `bson:"transaksi_number,omitempty" json:"transaksi_number,omitempty"` Status string `bson:"status,omitempty" json:"status,omitempty"` User_phone string `bson:"user_phone,omitempty" json:"user_phone,omitempty"` Formatted_time string `bson:"formatted_time,omitempty" json:"formatted_time,omitempty"` Buktitf string `bson:"buktitf,omitempty" json:"buktitf,omitempty"` }
Click to show internal directories.
Click to hide internal directories.