repositories

package
v0.0.0-...-377eb94 Latest Latest
Warning

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

Go to latest
Published: May 9, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskRepo

type TaskRepo struct {
	Coll *mgo.Collection
}

func NewTaskRepo

func NewTaskRepo(session *mgo.Session, dbName string) *TaskRepo

func (*TaskRepo) All

func (r *TaskRepo) All() (models.TaskCollection, error)

func (*TaskRepo) Create

func (r *TaskRepo) Create(task *models.Task) error

func (*TaskRepo) Delete

func (r *TaskRepo) Delete(id string) error

func (*TaskRepo) FindByName

func (r *TaskRepo) FindByName(query string) (models.TaskResource, error)

func (*TaskRepo) Update

func (r *TaskRepo) Update(taskDb *models.Task, task *models.Task) error

Jump to

Keyboard shortcuts

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