Documentation ¶
Index ¶
- Variables
- func Decode(publicKey string, tokenstring string) (payload model.Payload, err error)
- func DeleteGudangA(idparam, iduser primitive.ObjectID, db *mongo.Database) error
- func DeleteGudangB(idparam, iduser primitive.ObjectID, db *mongo.Database) error
- func DeleteGudangC(idparam, iduser primitive.ObjectID, db *mongo.Database) error
- func DeleteOneDoc(_id primitive.ObjectID, db *mongo.Database, col string) error
- func Encode(id primitive.ObjectID, role, privateKey string) (string, error)
- func GCFHandlerDeleteGudangA(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerDeleteGudangB(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerDeleteGudangC(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerGetAll(MONGOCONNSTRINGENV, dbname, col string, docs interface{}) string
- func GCFHandlerGetAllGudangA(MONGOCONNSTRINGENV, dbname string) string
- func GCFHandlerGetAllGudangB(MONGOCONNSTRINGENV, dbname string) string
- func GCFHandlerGetAllGudangC(MONGOCONNSTRINGENV, dbname string) string
- func GCFHandlerGetAllProducts(MONGOCONNSTRINGENV, dbname string) string
- func GCFHandlerGetAllStaff(MONGOCONNSTRINGENV, dbname string) string
- func GCFHandlerGetAllUserByAdmin(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerGetGudangA(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerGetGudangAFromID(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerGetGudangB(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerGetGudangBFromID(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerGetGudangC(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerGetGudangCFromID(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerGetStaffFromID(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 GCFHandlerInsertGudangA(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerInsertGudangB(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerInsertGudangC(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerLogin(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerSearchProductByName(MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerSignUpStaff(MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerUpdateGudangA(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerUpdateGudangB(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerUpdateGudangC(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerUpdateStaff(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFHandlerUpdateUser(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func GCFReturnStruct(DataStuct any) string
- func GenerateKey() (privateKey, publicKey string)
- func GetAllDocs(db *mongo.Database, col string, docs interface{}) interface{}
- func GetAllGudangA(db *mongo.Database) (gudanga []model.GudangA, err error)
- func GetAllGudangB(db *mongo.Database) (gudangb []model.GudangB, err error)
- func GetAllGudangC(db *mongo.Database) (gudangc []model.GudangC, err error)
- func GetAllProducts(db *mongo.Database) (products []model.Gudang, err error)
- func GetAllStaff(db *mongo.Database) (staff []model.Staff, err error)
- func GetAllUser(db *mongo.Database) (user []model.User, err error)
- func GetGudangAFromID(_id primitive.ObjectID, db *mongo.Database) (gudanga model.GudangA, err error)
- func GetGudangBFromID(_id primitive.ObjectID, db *mongo.Database) (gudangb model.GudangB, err error)
- func GetGudangCFromID(_id primitive.ObjectID, db *mongo.Database) (gudangc model.GudangC, err error)
- func GetID(r *http.Request) string
- func GetProductName(r *http.Request) string
- func GetStaffFromAkun(id_akun primitive.ObjectID, db *mongo.Database) (doc model.Staff, err error)
- func GetStaffFromID(_id primitive.ObjectID, db *mongo.Database) (doc model.Staff, err error)
- func GetUser(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname 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 GetUserLogin(PASETOPUBLICKEYENV string, r *http.Request) (model.Payload, error)
- func InsertGudangA(_id primitive.ObjectID, db *mongo.Database, insertedDoc model.GudangA) error
- func InsertGudangB(_id primitive.ObjectID, db *mongo.Database, insertedDoc model.GudangB) error
- func InsertGudangC(_id primitive.ObjectID, db *mongo.Database, insertedDoc model.GudangC) error
- func InsertOneDoc(db *mongo.Database, col string, doc interface{}) (insertedID primitive.ObjectID, err error)
- func LogIn(db *mongo.Database, insertedDoc model.User) (user model.User, err error)
- func MongoConnect(MongoString, warehouse_db string) *mongo.Database
- func PutEmail(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func PutPassword(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
- func SearchProductByName(name string, db *mongo.Database) ([]model.SearchResult, error)
- func SendWhatsAppConfirmation(namalengkap, nohp, email, password string) error
- func SignUpStaff(db *mongo.Database, insertedDoc model.Staff) error
- func UpdateEmailUser(iduser primitive.ObjectID, db *mongo.Database, insertedDoc model.User) error
- func UpdateGudangA(idparam, iduser primitive.ObjectID, db *mongo.Database, ...) error
- func UpdateGudangB(idparam, iduser primitive.ObjectID, db *mongo.Database, ...) error
- func UpdateGudangC(idparam, iduser primitive.ObjectID, db *mongo.Database, ...) 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 UpdateStaff(idparam primitive.ObjectID, db *mongo.Database, insertedDoc model.Staff) error
- func UpdateUser(iduser primitive.ObjectID, db *mongo.Database, insertedDoc model.User) error
Constants ¶
This section is empty.
Variables ¶
View Source
var Response model.Response
user
Functions ¶
func DeleteGudangA ¶ added in v0.0.5
delete gudang a
func DeleteGudangB ¶ added in v0.0.5
delete gudang b
func DeleteGudangC ¶ added in v0.0.5
delete gudang c
func DeleteOneDoc ¶ added in v0.0.5
func GCFHandlerDeleteGudangA ¶ added in v0.0.5
func GCFHandlerDeleteGudangB ¶ added in v0.0.5
func GCFHandlerDeleteGudangC ¶ added in v0.0.5
func GCFHandlerGetAll ¶ added in v0.0.5
get all
func GCFHandlerGetAllGudangA ¶ added in v0.0.5
func GCFHandlerGetAllGudangB ¶ added in v0.0.5
func GCFHandlerGetAllGudangC ¶ added in v0.0.5
func GCFHandlerGetAllProducts ¶ added in v0.2.2
func GCFHandlerGetAllStaff ¶ added in v0.0.5
func GCFHandlerGetAllUserByAdmin ¶ added in v0.0.5
func GCFHandlerGetGudangA ¶ added in v0.0.5
func GCFHandlerGetGudangAFromID ¶ added in v0.0.5
func GCFHandlerGetGudangB ¶ added in v0.0.5
func GCFHandlerGetGudangBFromID ¶ added in v0.0.5
func GCFHandlerGetGudangC ¶ added in v0.0.5
func GCFHandlerGetGudangCFromID ¶ added in v0.0.5
func GCFHandlerGetStaffFromID ¶ added in v0.0.5
func GCFHandlerGetUser ¶ added in v0.0.5
func GCFHandlerGetUserFromID ¶ added in v0.0.5
func GCFHandlerInsertGudangA ¶ added in v0.0.5
func GCFHandlerInsertGudangA(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
GudangA
func GCFHandlerInsertGudangB ¶ added in v0.0.5
func GCFHandlerInsertGudangB(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
GudangB
func GCFHandlerInsertGudangC ¶ added in v0.0.5
func GCFHandlerInsertGudangC(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
GudangC
func GCFHandlerLogin ¶ added in v0.0.5
func GCFHandlerLogin(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
login
func GCFHandlerSearchProductByName ¶ added in v0.2.4
func GCFHandlerSignUpStaff ¶ added in v0.0.5
signup
func GCFHandlerUpdateGudangA ¶ added in v0.0.5
func GCFHandlerUpdateGudangB ¶ added in v0.0.5
func GCFHandlerUpdateGudangC ¶ added in v0.0.5
func GCFHandlerUpdateStaff ¶ added in v0.0.5
func GCFHandlerUpdateStaff(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
staff
func GCFHandlerUpdateUser ¶ added in v0.0.5
func GCFHandlerUpdateUser(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, r *http.Request) string
user
func GenerateKey ¶
func GenerateKey() (privateKey, publicKey string)
func GetAllDocs ¶
crud
func GetAllGudangA ¶ added in v0.0.5
get all gudang a
func GetAllGudangB ¶ added in v0.0.5
get all gudang b
func GetAllGudangC ¶ added in v0.0.5
get all gudang c
func GetAllProducts ¶ added in v0.2.2
Gudang
func GetAllStaff ¶ added in v0.0.5
func GetAllUser ¶ added in v0.0.5
func GetGudangAFromID ¶ added in v0.0.5
func GetGudangAFromID(_id primitive.ObjectID, db *mongo.Database) (gudanga model.GudangA, err error)
Get GudangA FromID
func GetGudangBFromID ¶ added in v0.0.5
func GetGudangCFromID ¶ added in v0.0.5
func GetProductName ¶ added in v0.2.4
func GetStaffFromAkun ¶ added in v0.0.5
func GetStaffFromID ¶ added in v0.0.5
func GetUserFromEmail ¶
func GetUserFromID ¶ added in v0.0.5
func GetUserLogin ¶ added in v0.0.8
get user login
func InsertGudangA ¶ added in v0.0.5
Gudang A insert gudang a
func InsertGudangB ¶ added in v0.0.5
Gudang B insert gudang b
func InsertGudangC ¶ added in v0.0.5
Gudang C insert gudang c
func InsertOneDoc ¶
func MongoConnect ¶
func PutPassword ¶ added in v0.0.8
password
func SearchProductByName ¶ added in v0.2.4
func SendWhatsAppConfirmation ¶ added in v0.2.1
func SignUpStaff ¶ added in v0.0.5
signup
func UpdateEmailUser ¶ added in v0.0.8
func UpdateGudangA ¶ added in v0.0.5
func UpdateGudangA(idparam, iduser primitive.ObjectID, db *mongo.Database, insertedDoc model.GudangA) error
update gudang a
func UpdateGudangB ¶ added in v0.0.5
func UpdateGudangB(idparam, iduser primitive.ObjectID, db *mongo.Database, insertedDoc model.GudangB) error
update gudang b
func UpdateGudangC ¶ added in v0.0.5
func UpdateGudangC(idparam, iduser primitive.ObjectID, db *mongo.Database, insertedDoc model.GudangC) error
update gudang b
func UpdateOneDoc ¶
func UpdatePasswordUser ¶ added in v0.0.7
func UpdatePasswordUser(iduser primitive.ObjectID, db *mongo.Database, insertedDoc model.Password) error
update password
func UpdateStaff ¶ added in v0.0.5
staff
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.