Versions in this module Expand all Collapse all v1 v1.0.0 Oct 18, 2016 Changes in this version + type NoteRepository struct + C *mgo.Collection + func (r *NoteRepository) Create(note *models.TaskNote) error + func (r *NoteRepository) Delete(id string) error + func (r *NoteRepository) GetAll() []models.TaskNote + func (r *NoteRepository) GetById(id string) (note models.TaskNote, err error) + func (r *NoteRepository) GetByTask(id string) []models.TaskNote + func (r *NoteRepository) Update(note *models.TaskNote) error + type TaskRepository struct + C *mgo.Collection + func (r *TaskRepository) Create(task *models.Task) error + func (r *TaskRepository) Delete(id string) error + func (r *TaskRepository) GetAll() []models.Task + func (r *TaskRepository) GetById(id string) (task models.Task, err error) + func (r *TaskRepository) GetByUser(user string) []models.Task + func (r *TaskRepository) Update(task *models.Task) error + type UserRepository struct + C *mgo.Collection + func (r *UserRepository) CreateUser(user *models.User) error + func (r *UserRepository) Login(user models.User) (u models.User, err error)