Documentation ¶
Index ¶
- type TaskRepository
- func (repo *TaskRepository) Create(task *model.Task) (*model.Task, error)
- func (repo *TaskRepository) Delete(id int64) (*model.Task, error)
- func (repo *TaskRepository) Get(id int64) (*model.Task, error)
- func (repo *TaskRepository) List() ([]*model.Task, error)
- func (repo *TaskRepository) Update(task *model.Task) (*model.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TaskRepository ¶
type TaskRepository struct {
// contains filtered or unexported fields
}
TaskRepository implements methods to get, create, update and delete Tasks from the database.
func (*TaskRepository) Delete ¶
func (repo *TaskRepository) Delete(id int64) (*model.Task, error)
Delete removes a stored Task.
func (*TaskRepository) Get ¶
func (repo *TaskRepository) Get(id int64) (*model.Task, error)
Get retrieves one stored Task by its id.
Click to show internal directories.
Click to hide internal directories.