service

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2019 License: NCSA Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddApplicantRole

func AddApplicantRole(id string) error

Add applicant role to user with auth service

func AddInitialDecision

func AddInitialDecision(id string) error

Create the initial decision for the application with the decision service

func AddMentorRole

func AddMentorRole(id string) error

Add mentor role to user with auth service

func AddRole

func AddRole(id string, role models.Role) error

Add role to user with auth service

func AddUserToMailList

func AddUserToMailList(user_id string, mail_list_id string) error

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 AssignValueType(key, value string) (interface{}, error)

func Contains

func Contains(slice []string, str string) bool

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 GetStats

func GetStats() (map[string]interface{}, error)

Returns all registration stats

func GetUserInfo

func GetUserInfo(id string) (*models.UserInfo, error)

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

func SendUserMail(id string, template string) error

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL