tasks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSelfDependent    = errors.New("found self dependency")
	ErrTaskDoesNotExist = errors.New("task does not exist")
	ErrCyclicDependency = errors.New("task has indirect cyclic dependency")
)

Functions

This section is empty.

Types

type TaskService

type TaskService struct {
	// contains filtered or unexported fields
}

func NewTaskService

func NewTaskService(storage storage) *TaskService

func (*TaskService) DeleteTasks

func (s *TaskService) DeleteTasks(
	ctx context.Context,
	ids []int64,
) error

func (*TaskService) GetDependencies

func (s *TaskService) GetDependencies(
	ctx context.Context,
	ids []int64,
) (map[int64][]int64, error)

func (*TaskService) GetTasks

func (s *TaskService) GetTasks(
	ctx context.Context,
	ids []int64,
) ([]models.Task, error)

func (*TaskService) InsertTasks

func (s *TaskService) InsertTasks(
	ctx context.Context,
	tasks []models.Task,
) ([]int64, error)

func (*TaskService) UpdateTasks

func (s *TaskService) UpdateTasks(
	ctx context.Context,
	tasks []models.UpdatedTask,
) error

Jump to

Keyboard shortcuts

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