Documentation ¶
Index ¶
- func AddMenuHandler(s *module.MenuService) http.HandlerFunc
- func ArchiveMenuHandler(s *module.MenuService) http.HandlerFunc
- func ChatPredict(w http.ResponseWriter, r *http.Request)
- func ChatPredictRegex(w http.ResponseWriter, r *http.Request)
- func Decode(publicKey string, tokenstring string) (payload model.Payload, err error)
- func Decode1(secret, token string) (model.Payload, error)
- func Encode(id primitive.ObjectID, role, privateKey string) (string, error)
- func Encode1(id, role, secret string) (string, error)
- func ForgotPassword(db *mongo.Database, request model.ForgotPasswordRequest) error
- func GCFHandlerForgotPassword(MONGOSTRING, dbname string, r *http.Request) string
- func GCFHandlerSignIn(PASETOPRIVATEKEYENV, MONGOSTRING, dbname string, r *http.Request) string
- func GCFHandlerSignUp(MONGOSTRING, dbname string, r *http.Request) string
- func GCFHandlerSignUp2(MONGOSTRING, dbname string, r *http.Request) string
- func GCFReturnStruct(DataStuct any) string
- func GenerateKey() (privateKey, publicKey string)
- func GetUserFromEmail(email string, db *mongo.Database) (doc model.User, err error)
- func GetUserLogin(PASETOPUBLICKEYENV string, r *http.Request) (model.Payload, error)
- func HomeGaysdisal(w http.ResponseWriter, r *http.Request)
- func Menu(collection *mongo.Collection) *model.MenuService
- func NotFound(respw http.ResponseWriter, req *http.Request)
- func RenameMenuHandler(s *module.MenuService) http.HandlerFunc
- func SignIn(db *mongo.Database, insertedDoc model.User) (user model.User, err error)
- func SignUp(db *mongo.Database, insertedDoc model.Pengguna) error
- func SignUp2(db *mongo.Database, insertedDoc model.Pengguna) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMenuHandler ¶ added in v0.1.2
func AddMenuHandler(s *module.MenuService) http.HandlerFunc
AddMenuHandler handles adding a new menu
func ArchiveMenuHandler ¶ added in v0.1.2
func ArchiveMenuHandler(s *module.MenuService) http.HandlerFunc
ArchiveMenuHandler handles moving a menu to the archive
func ChatPredict ¶ added in v0.1.2
func ChatPredict(w http.ResponseWriter, r *http.Request)
func ChatPredictRegex ¶ added in v0.1.2
func ChatPredictRegex(w http.ResponseWriter, r *http.Request)
func ForgotPassword ¶ added in v0.1.2
func ForgotPassword(db *mongo.Database, request model.ForgotPasswordRequest) error
<--- Forgot Password ---> GCFHandlerForgotPassword handles forgot password requests
func GCFHandlerForgotPassword ¶ added in v0.1.2
GCFHandlerForgotPassword handles the forgot password request
func GCFHandlerSignIn ¶ added in v0.1.2
<--- Login --->
func GCFHandlerSignUp ¶ added in v0.1.2
GCFHandlerSignUpPengguna handles signup for Google Cloud Function
func GCFHandlerSignUp2 ¶ added in v0.1.2
GCFHandlerSignUpPengguna handles signup for Google Cloud Function
func GenerateKey ¶ added in v0.1.2
func GenerateKey() (privateKey, publicKey string)
func GetUserFromEmail ¶ added in v0.0.8
get user from email
func GetUserLogin ¶ added in v0.0.8
get user login
func HomeGaysdisal ¶ added in v0.0.8
func HomeGaysdisal(w http.ResponseWriter, r *http.Request)
func Menu ¶ added in v0.1.3
func Menu(collection *mongo.Collection) *model.MenuService
Newmodel.MenuService returns a new model.MenuService
func NotFound ¶ added in v0.0.8
func NotFound(respw http.ResponseWriter, req *http.Request)
NotFound handles 404 errors
func RenameMenuHandler ¶ added in v0.1.2
func RenameMenuHandler(s *module.MenuService) http.HandlerFunc
/ RenameMenuHandler handles renaming a menu
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.