Documentation ¶
Index ¶
- func AddApplicantRole(id string) error
- func AddInitialDecision(id string) error
- func AddMentorRole(id string) error
- func AddRole(id string, role models.Role) error
- func AddUserToMailList(user_id string, mail_list_id string) error
- func AssignValueType(key, value string) (interface{}, error)
- func Contains(slice []string, str string) bool
- func CreateMentorRegistration(id string, mentor_registration models.MentorRegistration) error
- func CreateUserRegistration(id string, user_registration models.UserRegistration) error
- func GetFilteredUserRegistrations(parameters map[string][]string) (*models.FilteredRegistrations, error)
- func GetMentorRegistration(id string) (*models.MentorRegistration, error)
- func GetStats() (map[string]interface{}, error)
- func GetUserInfo(id string) (*models.UserInfo, error)
- func GetUserRegistration(id string) (*models.UserRegistration, error)
- func Initialize() error
- func SendUserMail(id string, template string) error
- func UpdateMentorRegistration(id string, mentor_registration models.MentorRegistration) error
- func UpdateUserRegistration(id string, user_registration models.UserRegistration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddApplicantRole ¶
Add applicant role to user with auth service
func AddInitialDecision ¶
Create the initial decision for the application with the decision service
func AddUserToMailList ¶
Add user with given id, to the specified mailing list. If the mailing list does not exist, it creates a new list with the user.
func AssignValueType ¶
func CreateMentorRegistration ¶
func CreateMentorRegistration(id string, mentor_registration models.MentorRegistration) error
Creates the registration associated with the given mentor id
func CreateUserRegistration ¶
func CreateUserRegistration(id string, user_registration models.UserRegistration) error
Creates the registration associated with the given user id
func GetFilteredUserRegistrations ¶
func GetFilteredUserRegistrations(parameters map[string][]string) (*models.FilteredRegistrations, error)
Returns the registrations associated with the given parameters
func GetMentorRegistration ¶
func GetMentorRegistration(id string) (*models.MentorRegistration, error)
Returns the registration associated with the given mentor id
func GetUserInfo ¶
Get basic user info from user serivce
func GetUserRegistration ¶
func GetUserRegistration(id string) (*models.UserRegistration, error)
Returns the registration associated with the given user id
func Initialize ¶ added in v0.3.0
func Initialize() error
func SendUserMail ¶
Send user with specified id a confirmation email, with template as specified. If there is an error sending the confirmation email, the registration is failed.
func UpdateMentorRegistration ¶
func UpdateMentorRegistration(id string, mentor_registration models.MentorRegistration) error
Updates the registration associated with the given mentor id
func UpdateUserRegistration ¶
func UpdateUserRegistration(id string, user_registration models.UserRegistration) error
Updates the registration associated with the given user id
Types ¶
This section is empty.