Documentation
¶
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func HashPassword(password string) (string, error)
- func IsPasswordValid(mongoconn *mongo.Database, collection string, userdata User) bool
- func ReturnStruct(DataStuct any) string
- func SetConnection(MONGOCONNSTRINGENV, dbname string) *mongo.Database
- func SigninHandler(PASETOPRIVATEKEYENV, MONGOCONNSTRINGENV, dbname, collectionname string, ...) string
- func Signup(w http.ResponseWriter, r *http.Request)
- type Credential
- type SignupPayload
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
func HashPassword ¶
func IsPasswordValid ¶
func ReturnStruct ¶
func SetConnection ¶
func SigninHandler ¶
Types ¶
type Credential ¶
type SignupPayload ¶
Click to show internal directories.
Click to hide internal directories.