Documentation ¶
Index ¶
- func NewTaskHandler(taskRepositoryDepenndency dependency.TaskRepositoryDependency) outer.TaskUseCase
- type TaskHandler
- func (r *TaskHandler) AllTasks(ctx context.Context) ([]*models.TaskModel, error)
- func (r *TaskHandler) DeleteTask(ctx context.Context, id int) error
- func (r *TaskHandler) GetTask(ctx context.Context, id int) (*models.TaskModel, error)
- func (r *TaskHandler) SaveTask(ctx context.Context, task models.TaskModel) error
- func (r *TaskHandler) UpdateTask(ctx context.Context, id int, columns map[string]interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTaskHandler ¶
func NewTaskHandler(taskRepositoryDepenndency dependency.TaskRepositoryDependency) outer.TaskUseCase
Types ¶
type TaskHandler ¶
type TaskHandler struct {
TaskRepositoryDependency dependency.TaskRepositoryDependency
}
func (*TaskHandler) DeleteTask ¶
func (r *TaskHandler) DeleteTask(ctx context.Context, id int) error
func (*TaskHandler) UpdateTask ¶
Click to show internal directories.
Click to hide internal directories.