tasks

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MapCreateTaskPrototypeToDomain

func MapCreateTaskPrototypeToDomain(task *desc.CreateTasksRequest_TaskPrototype) (models.Task, error)

func MapDomainTaskPriorityToProto

func MapDomainTaskPriorityToProto(priority models.Priority) (desc.Priority, error)

func MapDomainTaskToProto

func MapDomainTaskToProto(task models.Task) (*desc.Task, error)

func MapTaskPriorityToDomain

func MapTaskPriorityToDomain(priority desc.Priority) (models.Priority, error)

func MapUpdateTaskPrototypeToUpdatedTask

func MapUpdateTaskPrototypeToUpdatedTask(task *desc.UpdateTasksRequest_TaskPrototype) (models.UpdatedTask, error)

Types

type Implementation

type Implementation struct {
	desc.UnimplementedTaskServiceServer
	// contains filtered or unexported fields
}

func New

func New(taskService TaskService) *Implementation

func (*Implementation) CreateTasks

func (*Implementation) DeleteTasks

func (*Implementation) GetAllDependencies

func (*Implementation) GetTasks

func (*Implementation) UpdateTasks

type TaskService

type TaskService interface {
	GetTasks(ctx context.Context, ids []int64) ([]models.Task, error)
	InsertTasks(ctx context.Context, tasks []models.Task) ([]int64, error)
	UpdateTasks(ctx context.Context, tasks []models.UpdatedTask) error
	DeleteTasks(ctx context.Context, ids []int64) error
	GetDependencies(ctx context.Context, ids []int64) (map[int64][]int64, error)
}

Jump to

Keyboard shortcuts

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