Versions in this module Expand all Collapse all v0 v0.1.1 Oct 20, 2014 v0.1.0 Oct 20, 2014 Changes in this version + var ErrInvalidPassword = errors.New("Username or password incorrect.") + func RequiredErr(fieldName string) binding.Error + type Assignment struct + ClassID string + DueDate time.Time + ID string + Name string + TermID string + Type AssignmentType + TypeID string + func (a *Assignment) FieldMap() binding.FieldMap + func (a Assignment) Validate(req *http.Request, errs binding.Errors) binding.Errors + type AssignmentGrade struct + AssignmentID string + Grade string + ID string + PersonID string + func (a *AssignmentGrade) FieldMap() binding.FieldMap + func (a AssignmentGrade) Validate(req *http.Request, errs binding.Errors) binding.Errors + type AssignmentType struct + ID string + MaxScore int16 + Name string + SubjectIDs []string + Weight float64 + func (a *AssignmentType) FieldMap() binding.FieldMap + func (a AssignmentType) Validate(req *http.Request, errs binding.Errors) binding.Errors + type Class struct + GradeLevel string + ID string + MaxStudents int + Name string + Subject string + Terms []string + func (c *Class) FieldMap() binding.FieldMap + func (c Class) Validate(req *http.Request, errs binding.Errors) binding.Errors + type Enrollment struct + ClassID string + ID string + PersonID string + TermID string + func (e *Enrollment) FieldMap() binding.FieldMap + func (e Enrollment) Validate(req *http.Request, errs binding.Errors) binding.Errors + type EnrollmentAPIRes struct + ClassID string + ID string + Person Person + PersonID string + TermID string + type Model interface + UpdateTime func() + type Person struct + Email string + FirstName string + GradeLevel string + ID string + LastName string + MiddleName string + PhoneNumber string + Types []string + func (p *Person) FieldMap() binding.FieldMap + func (p Person) Validate(req *http.Request, errs binding.Errors) binding.Errors + type Session struct + ExpiresAt time.Time + ID string + Token string + UserID string + func NewSession(u User) (Session, error) + type Term struct + EndDate time.Time + ID string + Name string + SchoolYear string + StartDate time.Time + func (t *Term) FieldMap() binding.FieldMap + func (t Term) Validate(req *http.Request, errs binding.Errors) binding.Errors + type TimeStamp struct + CreatedAt time.Time + UpdatedAt time.Time + func (a *TimeStamp) UpdateTime() + type User struct + Disabled bool + Email string + EmailLower string + HashedPassword string + ID string + PersonID string + Role string + func NewUserFor(email, password, role, personID string) (*User, error) + func (u *User) ComparePassword(password string) error + func (u *User) SetPassword(password string) error + type ValError struct + FieldNames []string + Message string + func (e ValError) Error() string + type ValErrors []ValError + func (v *ValErrors) Add(fieldNames []string, message string) + func (v *ValErrors) Len() int