Documentation
¶
Index ¶
- func AlterSaltAndPasswordHash(currentParticipant *Participant)
- func CreateAdmin(admin Participant, w http.ResponseWriter)
- func CreateMoyoNonAdmin(pt Participant, w http.ResponseWriter) (int int64, email string, err error)
- func CreateNonAdmin(pt Participant, w http.ResponseWriter)
- func GetS3PreSignedUrl(key string, u UnverifiedBPFileHandler) string
- func IsParticipantInDB(pt Participant) (isRegistered bool)
- func LoginParticipant(currentParticipant *Participant, w http.ResponseWriter)
- func Password(ptID int64, currentParticipant *Participant)
- func Salt(currentParticipant *Participant, ptID int64, w http.ResponseWriter)
- type IDGenerationHandler
- type ListParticipantsHandler
- type ListUnverifiedFilesHandler
- type Participant
- type PasswordRecoveryHTTPRequest
- type PasswordRecoveryHandler
- type UnverifiedBPFileHandler
- type VitalChartHandler
- type VitalsRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AlterSaltAndPasswordHash ¶
func AlterSaltAndPasswordHash(currentParticipant *Participant)
AlterSaltAndPasswordHash to protect against hacking
func CreateAdmin ¶
func CreateAdmin(admin Participant, w http.ResponseWriter)
CreateAdmin insert participant into database
func CreateMoyoNonAdmin ¶
func CreateMoyoNonAdmin(pt Participant, w http.ResponseWriter) (int int64, email string, err error)
CreateNonAdmin insert participant with coordinator privileges into database
func CreateNonAdmin ¶
func CreateNonAdmin(pt Participant, w http.ResponseWriter)
CreateNonAdmin insert participant with coordinator privileges into database
func GetS3PreSignedUrl ¶
func GetS3PreSignedUrl(key string, u UnverifiedBPFileHandler) string
func GetS3PreSignedUrl(bucket string, key string, region string, expiration time.Duration) {
func IsParticipantInDB ¶
func IsParticipantInDB(pt Participant) (isRegistered bool)
func LoginParticipant ¶
func LoginParticipant(currentParticipant *Participant, w http.ResponseWriter)
LoginParticipant check if participant creds match what is in the database
func Password ¶
func Password(ptID int64, currentParticipant *Participant)
Password get current participants password
func Salt ¶
func Salt(currentParticipant *Participant, ptID int64, w http.ResponseWriter)
Salt gets the salt for the participant
Types ¶
type IDGenerationHandler ¶
func (IDGenerationHandler) ServeHTTP ¶
func (idGH IDGenerationHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ListParticipantsHandler ¶
type ListParticipantsHandler struct {
Name string
}
func (ListParticipantsHandler) ServeHTTP ¶
func (l ListParticipantsHandler) ServeHTTP(writer http.ResponseWriter, _ *http.Request)
type ListUnverifiedFilesHandler ¶
type ListUnverifiedFilesHandler struct {
Name string
}
func (ListUnverifiedFilesHandler) ServeHTTP ¶
func (l ListUnverifiedFilesHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)
type Participant ¶
type Participant struct { EmailEncoded []byte Email string Phone []byte ID int64 Capacity string Salt string PasswordHash string Study string IV []byte PhoneIV []byte EmailHash string Password string HasConsented bool }
Participant data type of users interacting with application
type PasswordRecoveryHandler ¶
type PasswordRecoveryHandler struct {
Name string
}
func (PasswordRecoveryHandler) ServeHTTP ¶
func (pwRch PasswordRecoveryHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type UnverifiedBPFileHandler ¶
func (UnverifiedBPFileHandler) ServeHTTP ¶
func (u UnverifiedBPFileHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)
type VitalChartHandler ¶
type VitalChartHandler struct {
Name string
}
func (VitalChartHandler) ServeHTTP ¶
func (v VitalChartHandler) ServeHTTP(writer http.ResponseWriter, request *http.Request)
type VitalsRequest ¶
Click to show internal directories.
Click to hide internal directories.