Documentation ¶
Index ¶
- func NewTaskRepository(db *sql.DB) dependency.TaskRepositoryDependency
- type TaskRepository
- func (t *TaskRepository) All(ctx context.Context) (tasks []*models.TaskModel, err error)
- func (t *TaskRepository) Delete(ctx context.Context, id int) error
- func (t *TaskRepository) Get(ctx context.Context, id int) (*models.TaskModel, error)
- func (t *TaskRepository) Save(ctx context.Context, task models.TaskModel) error
- func (t *TaskRepository) Update(ctx context.Context, id int, columns map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTaskRepository ¶
func NewTaskRepository(db *sql.DB) dependency.TaskRepositoryDependency
Types ¶
Click to show internal directories.
Click to hide internal directories.