Documentation
¶
Index ¶
- type UseCase
- func (uc *UseCase) Create(ctx context.Context, userID, title, description string) (entity.Task, error)
- func (uc *UseCase) Delete(ctx context.Context, userID, taskID string) error
- func (uc *UseCase) Get(ctx context.Context, userID, taskID string) (entity.Task, error)
- func (uc *UseCase) List(ctx context.Context, userID string, status *entity.TaskStatus, ...) ([]entity.Task, int, error)
- func (uc *UseCase) Transition(ctx context.Context, userID, taskID string, newStatus entity.TaskStatus) (entity.Task, error)
- func (uc *UseCase) Update(ctx context.Context, userID, taskID, title, description string) (entity.Task, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UseCase ¶
type UseCase struct {
// contains filtered or unexported fields
}
UseCase -.
func (*UseCase) Create ¶
func (uc *UseCase) Create(ctx context.Context, userID, title, description string) (entity.Task, error)
Create -.
func (*UseCase) List ¶
func (uc *UseCase) List(ctx context.Context, userID string, status *entity.TaskStatus, limit, offset int) ([]entity.Task, int, error)
List -.
Click to show internal directories.
Click to hide internal directories.