port

package
v0.0.0-...-1047655 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskRepo

type TaskRepo interface {
	Get(id uuid.UUID) (*domain.Task, error)
	Create(userID uuid.UUID, title, description string) (*domain.Task, error)
	Update(*domain.Task) (*domain.Task, error)
	Delete(id uuid.UUID) error
	List(userID uuid.UUID, limit, offset uint32) []*domain.Task
}

type TaskService

type TaskService interface {
	GetTask(id uuid.UUID) (*domain.Task, error)
	CreateTask(userID uuid.UUID, title, description string) (*domain.Task, error)
	Update(*domain.Task) (*domain.Task, error)
	UpdateStatus(id uuid.UUID, status domain.TaskStatus) (*domain.Task, error)
	UpdateDetails(id uuid.UUID, title, description string) (*domain.Task, error)
	DeleteTask(id uuid.UUID) error
	ListTasks(userID uuid.UUID, limit, offset uint32) []*domain.Task
}

Jump to

Keyboard shortcuts

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