Documentation ¶
Overview ¶
Deals with user passwords
Index ¶
- func CheckPasswordHash(password, hash string) bool
- func CreateEvent(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func CreateUser(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func DeleteEvent(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func DeleteUser(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func GetAllEvents(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func GetAllUsers(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func GetEvent(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func GetUser(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func GetUserAudio(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func GetUserProfilePicture(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func HashPassword(password string) (string, error)
- func LogIn(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func Password(pass string) bool
- func RegisterUser(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func RunPython()
- func SearchEvent(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func UpdateEvent(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func UpdateUser(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func UploadFile(w http.ResponseWriter, r *http.Request)
- func UploadUserAudio(db *gorm.DB, w http.ResponseWriter, r *http.Request)
- func UploadUserPFP(db *gorm.DB, w http.ResponseWriter, r *http.Request)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckPasswordHash ¶
Checks if inputted password is similar to hashed password saved in database
func CreateEvent ¶
func CreateUser ¶
func DeleteEvent ¶
func DeleteUser ¶
func GetAllEvents ¶
func GetAllUsers ¶
func GetUserAudio ¶
func GetUserProfilePicture ¶
func RegisterUser ¶
func SearchEvent ¶
func UpdateEvent ¶
func UpdateUser ¶
func UploadFile ¶
func UploadFile(w http.ResponseWriter, r *http.Request)
func UploadUserAudio ¶
func UploadUserPFP ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.