Documentation ¶
Index ¶
- Variables
- func Decode(publicKey string, tokenstring string) (payload model.Payload, err error)
- func DeleteOneDoc(_id primitive.ObjectID, db *mongo.Database, col string) error
- func DeleteOrder(idparam, iduser primitive.ObjectID, db *mongo.Database) error
- func DeleteProduct(idparam, iduser primitive.ObjectID, db *mongo.Database) error
- func Encode(id primitive.ObjectID, role, privateKey string) (string, error)
- func GCFHandlerDeleteOrder(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerDeleteProduct(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerGetAll(MONGOCONNSTRINGENV, dbname, col string, docs interface{}) string
- func GCFHandlerGetAllOrder(MONGOCONNSTRINGENV, dbname string) string
- func GCFHandlerGetAllPengguna(MONGOCONNSTRINGENV, dbname string) string
- func GCFHandlerGetAllProduct(MONGOCONNSTRINGENV, dbname string) string
- func GCFHandlerGetAllSeller(MONGOCONNSTRINGENV, dbname string) string
- func GCFHandlerGetAllUserByAdmin(conn *mongo.Database) string
- func GCFHandlerGetOrder(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerGetOrderFromID(MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerGetPenggunaByAdmin(conn *mongo.Database, r *http.Request) string
- func GCFHandlerGetPenggunaByPengguna(iduser primitive.ObjectID, conn *mongo.Database) string
- func GCFHandlerGetPenggunaFromID(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerGetProduct(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerGetProductFromID(MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerGetSellerFromID(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerGetUser(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerGetUserFromID(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerInsertOrderProduct(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerInsertProduct(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerLogin(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerSignUpPengguna(MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerSignUpSeller(MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerUpdateByPengguna(idparam, iduser primitive.ObjectID, pengguna model.Pengguna, ...) string
- func GCFHandlerUpdateEmailUser(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerUpdatePasswordUser(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerUpdatePengguna(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerUpdateProduct(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerUpdateSeller(idparam, iduser primitive.ObjectID, db *mongo.Database, ...) error
- func GCFHandlerUpdateUser(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFReturnStruct(DataStuct any) string
- func GenerateKey() (privateKey, publicKey string)
- func Get(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GetAllDocs(db *mongo.Database, col string, docs interface{}) interface{}
- func GetAllOrder(db *mongo.Database) (order []model.Orderproduct, err error)
- func GetAllPengguna(db *mongo.Database) (pengguna []model.Pengguna, err error)
- func GetAllPenggunaByAdmin(db *mongo.Database) (pengguna []model.Pengguna, err error)
- func GetAllProduct(db *mongo.Database) (product []model.Product, err error)
- func GetAllSeller(db *mongo.Database) (seller []model.Seller, err error)
- func GetAllUser(db *mongo.Database) (user []model.User, err error)
- func GetID(r *http.Request) string
- func GetOrderFromID(_id primitive.ObjectID, db *mongo.Database) (doc model.Orderproduct, err error)
- func GetPenggunaFromAkun(akun primitive.ObjectID, db *mongo.Database) (doc model.Pengguna, err error)
- func GetPenggunaFromID(_id primitive.ObjectID, db *mongo.Database) (doc model.Pengguna, err error)
- func GetPenggunaFromIDByAdmin(idparam primitive.ObjectID, db *mongo.Database) (pengguna model.Pengguna, err error)
- func GetProductFromID(_id primitive.ObjectID, db *mongo.Database) (doc model.Product, err error)
- func GetSellerFromAkun(akun primitive.ObjectID, db *mongo.Database) (doc model.Seller, err error)
- func GetSellerFromID(_id primitive.ObjectID, db *mongo.Database) (doc model.Seller, err error)
- func GetSellerFromIDByAdmin(idparam primitive.ObjectID, db *mongo.Database) (seller model.Seller, err error)
- func GetUserFromEmail(email string, db *mongo.Database) (doc model.User, err error)
- func GetUserFromID(_id primitive.ObjectID, db *mongo.Database) (doc model.User, err error)
- func GetUserLogin(PASETOPUBLICKEYENV string, r *http.Request) (model.Payload, error)
- func InsertOneDoc(db *mongo.Database, col string, doc interface{}) (insertedID primitive.ObjectID, err error)
- func InsertOrderProduct(idparam, iduser primitive.ObjectID, db *mongo.Database, ...) error
- func InsertProduct(iduser primitive.ObjectID, db *mongo.Database, insertedDoc model.Product) error
- func LogIn(db *mongo.Database, insertedDoc model.User) (user model.User, err error)
- func MongoConnect(MongoString, dbname string) *mongo.Database
- func Put(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func SignUpPengguna(db *mongo.Database, insertedDoc model.Pengguna) error
- func SignUpSeller(db *mongo.Database, insertedDoc model.Seller) error
- func UpdateEmailUser(iduser primitive.ObjectID, db *mongo.Database, insertedDoc model.User) error
- func UpdateOneDoc(id primitive.ObjectID, db *mongo.Database, col string, doc interface{}) (err error)
- func UpdatePasswordUser(iduser primitive.ObjectID, db *mongo.Database, insertedDoc model.Password) error
- func UpdatePengguna(idparam, iduser primitive.ObjectID, db *mongo.Database, ...) error
- func UpdateSeller(idparam, iduser primitive.ObjectID, db *mongo.Database, ...) error
- func UpdateStatusOrderProduct(idorder primitive.ObjectID, db *mongo.Database, insertedDoc model.Orderproduct) error
- func UpdateUser(iduser primitive.ObjectID, db *mongo.Database, insertedDoc model.User) error
- func Updateproduct(idparam, iduser primitive.ObjectID, db *mongo.Database, ...) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Response model.Response Orderproduct model.Orderproduct )
Functions ¶
func DeleteProduct ¶
func GCFHandlerDeleteOrder ¶
func GCFHandlerDeleteProduct ¶
func GCFHandlerGetAll ¶
get all
func GCFHandlerGetAllOrder ¶
func GCFHandlerGetAllProduct ¶
func GCFHandlerGetAllSeller ¶
func GCFHandlerGetOrder ¶
func GCFHandlerGetProduct ¶
func GCFHandlerGetUser ¶
func GCFHandlerGetUserFromID ¶
func GCFHandlerInsertOrderProduct ¶
func GCFHandlerInsertOrderProduct(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
order
func GCFHandlerInsertProduct ¶
func GCFHandlerLogin ¶
func GCFHandlerLogin(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
login
func GCFHandlerSignUpPengguna ¶
signup
func GCFHandlerSignUpSeller ¶
func GCFHandlerUpdateEmailUser ¶
func GCFHandlerUpdateEmailUser(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
user
func GCFHandlerUpdatePengguna ¶
func GCFHandlerUpdatePengguna(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
pengguna
func GCFHandlerUpdateProduct ¶
func GCFHandlerUpdateSeller ¶
func GCFHandlerUpdateUser ¶
func GenerateKey ¶
func GenerateKey() (privateKey, publicKey string)
func GetAllDocs ¶
crud
func GetAllOrder ¶
func GetAllOrder(db *mongo.Database) (order []model.Orderproduct, err error)
func GetAllPengguna ¶
func GetAllPenggunaByAdmin ¶
func GetOrderFromID ¶
func GetPenggunaFromAkun ¶
func GetPenggunaFromID ¶
func GetPenggunaFromIDByAdmin ¶
func GetPenggunaFromIDByAdmin(idparam primitive.ObjectID, db *mongo.Database) (pengguna model.Pengguna, err error)
by admin
func GetProductFromID ¶
func GetSellerFromAkun ¶
func GetSellerFromID ¶
func GetSellerFromIDByAdmin ¶
func GetUserFromEmail ¶
func GetUserFromID ¶
func GetUserLogin ¶
get user login
func InsertOneDoc ¶
func InsertOrderProduct ¶
func InsertProduct ¶
func MongoConnect ¶
func SignUpPengguna ¶
signup
func UpdateEmailUser ¶
user
func UpdateOneDoc ¶
func UpdatePasswordUser ¶
func UpdatePengguna ¶
func UpdatePengguna(idparam, iduser primitive.ObjectID, db *mongo.Database, insertedDoc model.Pengguna) error
pengguna
func UpdateSeller ¶
func UpdateStatusOrderProduct ¶
func UpdateStatusOrderProduct(idorder primitive.ObjectID, db *mongo.Database, insertedDoc model.Orderproduct) error
update status pengiriman
func UpdateUser ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.