Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTaskHandler ¶
func NewTaskHandler(service TaskService) *taskHandler
NewTaskHandler Creates a new instance of the task handler
Types ¶
type TaskService ¶
type TaskService interface { Get(context.Context, uuid.UUID) (models.Task, error) Filter(context.Context, map[string]interface{}, models.Pagination) ([]*models.Task, error) Create(context.Context, models.Task) (models.Task, error) Patch(context.Context, uuid.UUID, models.Task) (models.Task, error) Delete(context.Context, uuid.UUID) error }
TaskService is the interface that the business layer needs to follow in order for this handler to properly work.
Click to show internal directories.
Click to hide internal directories.