Documentation ¶
Index ¶
- func Decode(publicKey string, tokenstring string) (payload model.Payload, err error)
- func DeleteCatatan(_id primitive.ObjectID, col string, db *mongo.Database) error
- func DeleteCatatanHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, collectionname string, ...) string
- func DeleteOneDoc(_id primitive.ObjectID, db *mongo.Database, col string) error
- func EditUpdateHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, collectionname string, ...) string
- func Encode(id primitive.ObjectID, email, privateKey string) (string, error)
- func GCFReturnStruct(DataStuct any) string
- func GenerateKey() (privateKey, publicKey string)
- func GetAllCatatan(db *mongo.Database, col string) (docs []model.Catatan, err error)
- func GetAllDocs(db *mongo.Database, col string, docs interface{}) interface{}
- func GetCatatanById(db *mongo.Database, col string, idparam primitive.ObjectID) (doc model.Catatan, err error)
- func GetCatatanHandler(MONGOCONNSTRINGENV, dbname string, collectionname string, r *http.Request) string
- func GetID(r *http.Request) string
- func GetProfileHandler(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 GetUserFromPhonenumber(phonenumber string, db *mongo.Database) (doc model.User, err error)
- func GetUserLogin(PASETOPUBLICKEYENV string, r *http.Request) (model.Payload, error)
- func InsertCatatan(db *mongo.Database, col string, r *http.Request) (bson.M, 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 SignUp(db *mongo.Database, col string, insertedDoc model.User) (string, error)
- func SignUpHandler(MONGOCONNSTRINGENV, dbname string, collectionname string, r *http.Request) string
- func TambahCatatanHandler(PASETOPUBLICKEYENV, MONGOCONNSTRINGENV, dbname string, collectionname string, ...) string
- func UpdateCatatan(_id primitive.ObjectID, db *mongo.Database, col string, r *http.Request) (bson.M, error)
- 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 DeleteCatatan ¶ added in v0.0.2
return nil }
func DeleteCatatanHandler ¶ added in v0.0.2
func DeleteOneDoc ¶ added in v0.0.2
func EditUpdateHandler ¶ added in v0.0.2
func GenerateKey ¶ added in v0.0.2
func GenerateKey() (privateKey, publicKey string)
func GetAllCatatan ¶
func GetAllDocs ¶ added in v0.0.2
func GetCatatanById ¶ added in v0.0.2
func GetCatatanHandler ¶ added in v0.0.2
func GetProfileHandler ¶ added in v0.0.3
func GetUserFromEmail ¶ added in v0.0.2
func GetUserFromID ¶ added in v0.0.2
user
func GetUserFromPhonenumber ¶ added in v0.0.2
func GetUserLogin ¶ added in v0.0.2
get user login
func InsertCatatan ¶
func InsertOneDoc ¶
func LogInHandler ¶ added in v0.0.2
func MongoConnect ¶ added in v0.0.2
mongodb
func SignUpHandler ¶ added in v0.0.2
func TambahCatatanHandler ¶ added in v0.0.2
func UpdateCatatan ¶
func UpdateOneDoc ¶ added in v0.0.2
func ValidatePhoneNumber ¶ added in v0.0.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.