task

package
v1.16.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 5, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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 New

func New(r repo.TaskRepo) *UseCase

New -.

func (*UseCase) Create

func (uc *UseCase) Create(ctx context.Context, userID, title, description string) (entity.Task, error)

Create -.

func (*UseCase) Delete

func (uc *UseCase) Delete(ctx context.Context, userID, taskID string) error

Delete -.

func (*UseCase) Get

func (uc *UseCase) Get(ctx context.Context, userID, taskID string) (entity.Task, error)

Get -.

func (*UseCase) List

func (uc *UseCase) List(ctx context.Context, userID string, status *entity.TaskStatus, limit, offset int) ([]entity.Task, int, error)

List -.

func (*UseCase) Transition

func (uc *UseCase) Transition(ctx context.Context, userID, taskID string, newStatus entity.TaskStatus) (entity.Task, error)

Transition -.

func (*UseCase) Update

func (uc *UseCase) Update(ctx context.Context, userID, taskID, title, description string) (entity.Task, error)

Update -.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL