Documentation ¶
Index ¶
- Variables
- func ChangePassword(db *mongo.Database, col string, userdata model.User) (user model.User, status bool, err error)
- func CheckPasswordHash(password, hash string) bool
- func DeleteOneDoc(_id primitive.ObjectID, db *mongo.Database, col string) error
- func DeletePemasukan(db *mongo.Database, col string, _id primitive.ObjectID) (status bool, err error)
- func DeletePengeluaran(db *mongo.Database, col string, _id primitive.ObjectID) (status bool, err error)
- func DeleteUser(db *mongo.Database, col string, userdata model.User) (bool, error)
- func GCFHandlerChangePassword(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerDeletePemasukan(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerDeletePengeluaran(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerDeleteUser(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetAllUser(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFHandlerGetPemasukanFromID(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetPemasukanFromUser(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetPengeluaranFromID(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetPengeluaranFromUser(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetUserFromID(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFHandlerGetUserFromToken(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerGetUserFromUsername(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFHandlerInsertPemasukan(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerInsertPengeluaran(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerSignin(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerSignup(MONGOCONNSTRINGENV, dbname, collectionname string, r *http.Request) string
- func GCFHandlerUpdatePemasukan(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFHandlerUpdatePengeluaran(PASETOPUBLICKEY, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func GCFReturnStruct(DataStuct any) string
- func GetAllDocs(db *mongo.Database, col string, docs interface{}) interface{}
- func GetAllUser(db *mongo.Database, col string) (userlist []model.User, err error)
- func GetID(r *http.Request) string
- func GetPemasukanFromID(db *mongo.Database, col string, _id primitive.ObjectID) (pemasukan model.Pemasukan, err error)
- func GetPemasukanFromUser(db *mongo.Database, col string, username string) (pemasukan []model.Pemasukan, err error)
- func GetPengeluaranFromID(db *mongo.Database, col string, _id primitive.ObjectID) (pengeluaran model.Pengeluaran, err error)
- func GetPengeluaranFromUser(db *mongo.Database, col string, username string) (pengeluaran []model.Pengeluaran, err error)
- func GetUserFromEmail(db *mongo.Database, col string, email string) (user model.User, err error)
- func GetUserFromID(db *mongo.Database, col string, _id primitive.ObjectID) (user model.User, err error)
- func GetUserFromToken(db *mongo.Database, col string, _id primitive.ObjectID) (user model.User, err error)
- func GetUserFromUsername(db *mongo.Database, col string, username string) (user model.User, err error)
- func HashPassword(password string) (string, error)
- func InsertManyDocsPemasukan(db *mongo.Database, col string, pemasukan []model.Pemasukan) (insertedIDs []primitive.ObjectID, err error)
- func InsertManyDocsPengeluaran(db *mongo.Database, col string, pengeluaran []model.Pengeluaran) (insertedIDs []primitive.ObjectID, err error)
- func InsertOneDoc(db *mongo.Database, col string, doc interface{}) (insertedID primitive.ObjectID, err error)
- func InsertPemasukan(db *mongo.Database, col string, pemasukanDoc model.Pemasukan, username string) (insertedID primitive.ObjectID, err error)
- func InsertPengeluaran(db *mongo.Database, col string, pengeluaranDoc model.Pengeluaran, ...) (insertedID primitive.ObjectID, err error)
- func MongoConnect(MongoString, dbname string) *mongo.Database
- func SendWhatsAppConfirmation(username, phonenumber string) error
- func SignIn(db *mongo.Database, col string, insertedDoc model.User) (user model.User, Status bool, err error)
- func SignUp(db *mongo.Database, col string, insertedDoc model.User) error
- func UpdateOneDoc(id primitive.ObjectID, db *mongo.Database, col string, doc interface{}) (err error)
- func UpdatePemasukan(db *mongo.Database, col string, doc model.Pemasukan) (docs model.Pemasukan, status bool, err error)
- func UpdatePengeluaran(db *mongo.Database, col string, doc model.Pengeluaran) (docs model.Pengeluaran, status bool, err error)
- func ValidatePhoneNumber(phoneNumber string) (bool, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Responsed model.Credential
)
Functions ¶
func ChangePassword ¶ added in v0.0.14
func CheckPasswordHash ¶
func DeletePemasukan ¶
func DeletePengeluaran ¶
func DeleteUser ¶ added in v0.0.14
func GCFHandlerChangePassword ¶ added in v0.0.14
func GCFHandlerDeleteUser ¶ added in v0.0.14
func GCFHandlerGetAllUser ¶ added in v0.0.7
func GCFHandlerGetPemasukanFromUser ¶ added in v0.0.13
func GCFHandlerGetPengeluaranFromUser ¶ added in v0.0.13
func GCFHandlerGetUserFromID ¶
func GCFHandlerGetUserFromToken ¶ added in v0.0.14
func GCFHandlerGetUserFromUsername ¶ added in v0.0.7
func GCFHandlerSignin ¶
func GCFHandlerSignup ¶
func GetAllDocs ¶
CRUD
func GetAllUser ¶ added in v0.0.7
func GetPemasukanFromID ¶
func GetPemasukanFromUser ¶ added in v0.0.13
func GetPengeluaranFromID ¶
func GetPengeluaranFromUser ¶ added in v0.0.13
func GetUserFromEmail ¶
func GetUserFromID ¶
func GetUserFromToken ¶ added in v0.0.14
func GetUserFromUsername ¶ added in v0.0.7
func HashPassword ¶
func InsertManyDocsPemasukan ¶
func InsertOneDoc ¶
func InsertPemasukan ¶
func InsertPengeluaran ¶
func MongoConnect ¶
func SendWhatsAppConfirmation ¶ added in v0.0.16
func SignIn ¶
func SignIn(db *mongo.Database, col string, insertedDoc model.User) (user model.User, Status bool, err error)
SIGN IN
func UpdateOneDoc ¶
func UpdatePemasukan ¶
func UpdatePengeluaran ¶
func UpdatePengeluaran(db *mongo.Database, col string, doc model.Pengeluaran) (docs model.Pengeluaran, status bool, err error)
func ValidatePhoneNumber ¶ added in v0.0.16
validate phone number
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.