Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNoRecord = errors.New("models: no matching record found") ErrInvalidCredentials = errors.New("models: invalid credentials") ErrDuplicateEmail = errors.New("models: duplicate email") ErrDuplicateNotification = errors.New("models: duplicate notification") ErrDuplicateClass = errors.New("models: duplicate class") )
Functions ¶
This section is empty.
Types ¶
type ClassModel ¶
func (*ClassModel) Classlist ¶
func (m *ClassModel) Classlist() ([]Class, error)
type ClassModelInterface ¶
type Notification ¶
type NotificationModel ¶
func (*NotificationModel) Delete ¶
func (n *NotificationModel) Delete(notificationid int) error
func (*NotificationModel) Insert ¶
func (n *NotificationModel) Insert(email string, classid int, expires int) error
func (*NotificationModel) NotificationList ¶
func (n *NotificationModel) NotificationList(email string) ([]Notification, error)
type UserModel ¶
func (*UserModel) Authenticate ¶
authenticate the user and make sure credentials match using bcrypt
Click to show internal directories.
Click to hide internal directories.