Documentation ¶
Index ¶
- func Decode(publicKey string, tokenstring string) (payload model.Payload, err error)
- func DeleteFavoriteSepatu(_id primitive.ObjectID, col string, db *mongo.Database) error
- func DeleteFavoriteSepatuHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, collectionname string, ...) string
- func DeleteKatalogSepatu(_id primitive.ObjectID, col string, db *mongo.Database) error
- func DeleteKatalogSepatuHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, collectionname string, ...) string
- func DeleteKategoriSepatu(_id primitive.ObjectID, col string, db *mongo.Database) error
- func DeleteKategoriSepatuHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, collectionname string, ...) string
- func DeleteOneDoc(_id primitive.ObjectID, db *mongo.Database, col string) error
- func EditEmail(idparam primitive.ObjectID, db *mongo.Database, insertedDoc model.User) (bson.M, error)
- func EditEmailHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func EditFavoriteSepatuHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, collectionname string, ...) string
- func EditKatalogSepatuHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, collectionname string, ...) string
- func EditKategoriSepatuHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, collectionname string, ...) string
- func EditPassword(idparam primitive.ObjectID, db *mongo.Database, ...) (bson.M, error)
- func EditPasswordHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func Encode(id primitive.ObjectID, email, privateKey string) (string, error)
- func GCFReturnStruct(DataStuct any) string
- func GenerateKey() (privateKey, publicKey string)
- func GetAllDocs(db *mongo.Database, col string, docs interface{}) interface{}
- func GetAllFavoriteSepatu(db *mongo.Database, col string) (docs []model.FavoriteSepatu, err error)
- func GetAllKatalogSepatu(db *mongo.Database, col string) (docs []model.KatalogSepatu, err error)
- func GetAllKategoriSepatu(db *mongo.Database, col string) (docs []model.KategoriSepatu, err error)
- func GetFavoriteSepatuById(db *mongo.Database, col string, idparam primitive.ObjectID) (doc model.FavoriteSepatu, err error)
- func GetFavoriteSepatuHandler(MONGOCONNSTRINGENV, dbname string, collectionname string, r *http.Request) string
- func GetID(r *http.Request) string
- func GetKatalogSepatuById(db *mongo.Database, col string, idparam primitive.ObjectID) (doc model.KatalogSepatu, err error)
- func GetKatalogSepatuHandler(MONGOCONNSTRINGENV, dbname string, collectionname string, r *http.Request) string
- func GetKategoriSepatuById(db *mongo.Database, col string, idparam primitive.ObjectID) (doc model.KategoriSepatu, err error)
- func GetKategoriSepatuHandler(MONGOCONNSTRINGENV, dbname string, collectionname string, r *http.Request) string
- 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 GetUserFromPhonenumber(phonenumber string, 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 LogIn(db *mongo.Database, col string, insertedDoc model.User) (user model.User, err error)
- func LogInHandler(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func MongoConnect(MongoString, dbname string) *mongo.Database
- func PostFavoriteSepatu(db *mongo.Database, col string, r *http.Request) (bson.M, error)
- func PostKatalogSepatu(db *mongo.Database, col string, r *http.Request) (bson.M, error)
- func PostKategoriSepatu(db *mongo.Database, col string, r *http.Request) (bson.M, error)
- func PutFavoriteSepatu(_id primitive.ObjectID, db *mongo.Database, col string, r *http.Request) (bson.M, error)
- func PutKatalogSepatu(_id primitive.ObjectID, db *mongo.Database, col string, r *http.Request) (bson.M, error)
- func PutKategoriSepatu(_id primitive.ObjectID, db *mongo.Database, col string, r *http.Request) (bson.M, error)
- func SignUp(db *mongo.Database, col string, insertedDoc model.User) (string, error)
- func SignUpHandler(MONGOCONNSTRINGENV, dbname string, collectionname string, r *http.Request) string
- func TambahFavoriteSepatuHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, collectionname string, ...) string
- func TambahKatalogSepatuHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, collectionname string, ...) string
- func TambahKategoriSepatuHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, collectionname string, ...) string
- func UpdateOneDoc(id primitive.ObjectID, db *mongo.Database, col string, doc interface{}) (err error)
- func ValidatePhoneNumber(phoneNumber string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteFavoriteSepatu ¶ added in v0.0.7
func DeleteFavoriteSepatuHandler ¶ added in v0.0.7
func DeleteKatalogSepatu ¶
delete Katalog
func DeleteKategoriSepatu ¶ added in v0.0.8
func DeleteKategoriSepatuHandler ¶ added in v0.0.8
func EditEmailHandler ¶
func EditFavoriteSepatuHandler ¶ added in v0.0.7
func EditKategoriSepatuHandler ¶ added in v0.0.8
func EditPassword ¶
func EditPasswordHandler ¶
func GenerateKey ¶
func GenerateKey() (privateKey, publicKey string)
func GetAllDocs ¶
crud
func GetAllFavoriteSepatu ¶ added in v0.0.7
func GetAllKatalogSepatu ¶
func GetAllKategoriSepatu ¶ added in v0.0.8
func GetFavoriteSepatuById ¶ added in v0.0.7
func GetFavoriteSepatuById(db *mongo.Database, col string, idparam primitive.ObjectID) (doc model.FavoriteSepatu, err error)
get Favorite Sepatu
func GetFavoriteSepatuHandler ¶ added in v0.0.7
func GetKatalogSepatuById ¶
func GetKatalogSepatuById(db *mongo.Database, col string, idparam primitive.ObjectID) (doc model.KatalogSepatu, err error)
get Katalog Sepatu
func GetKatalogSepatuHandler ¶
func GetKategoriSepatuById ¶ added in v0.0.8
func GetKategoriSepatuById(db *mongo.Database, col string, idparam primitive.ObjectID) (doc model.KategoriSepatu, err error)
get Kategori Sepatu
func GetKategoriSepatuHandler ¶ added in v0.0.8
func GetUserFromEmail ¶
func GetUserFromID ¶
user get-user
func GetUserFromPhonenumber ¶
func GetUserLogin ¶
get user login
func InsertOneDoc ¶
func LogInHandler ¶
func PostFavoriteSepatu ¶ added in v0.0.7
post Favorite Sepatu
func PostKatalogSepatu ¶
post Katalog Sepatu
func PostKategoriSepatu ¶ added in v0.0.8
post Kategori Sepatu
func PutFavoriteSepatu ¶ added in v0.0.7
func PutFavoriteSepatu(_id primitive.ObjectID, db *mongo.Database, col string, r *http.Request) (bson.M, error)
put Favorite Sepatu
func PutKatalogSepatu ¶
func PutKatalogSepatu(_id primitive.ObjectID, db *mongo.Database, col string, r *http.Request) (bson.M, error)
put Katalog Sepatu
func PutKategoriSepatu ¶ added in v0.0.8
func PutKategoriSepatu(_id primitive.ObjectID, db *mongo.Database, col string, r *http.Request) (bson.M, error)
put Kategori Sepatu
func SignUpHandler ¶
func TambahFavoriteSepatuHandler ¶ added in v0.0.7
func TambahFavoriteSepatuHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, collectionname string, r *http.Request) string
Favorite Sepatu
func TambahKatalogSepatuHandler ¶
func TambahKatalogSepatuHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, collectionname string, r *http.Request) string
Katalog Sepatu
func TambahKategoriSepatuHandler ¶ added in v0.0.8
func TambahKategoriSepatuHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, collectionname string, r *http.Request) string
Kategori Sepatu
func UpdateOneDoc ¶
func ValidatePhoneNumber ¶
validate phonenumber
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.