Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func VerifyPassword ¶
func VerifyPassword(hash PasswordHash, password string) error
Types ¶
type PasswordHash ¶
type PasswordHash string
func HashPassword ¶
func HashPassword(password string) (PasswordHash, error)
type User ¶
type User struct { Id UserId `json:"_id"` FirstName FirstName `json:"first_name"` LastName LastName `json:"last_name"` Email Email `json:"email"` Password PasswordHash `json:"password"` CourseHistory terms.TermRecords `json:"course_history"` Timelines []*timelines.Timeline `json:"timelines"` Role roles.Role `json:"role"` }
func (User) NewTimeline ¶
func (usr User) NewTimeline(name timelines.TimelineName)
Creates a new timeline with the courses added to the course CourseHistory
Click to show internal directories.
Click to hide internal directories.