task

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

Package task provides functionality for Creating, Updating, Deleting and Listing all the task from the storage source

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTask

func CreateTask(storage *storage.Storage, newTask *util.Task) (*util.Task, error)

CreateTask creates a new task using the provided storage and task details. It validates the new task and adds it to the storage.

func DeleteTask

func DeleteTask(storage *storage.Storage, id int) error

DeleteTask deletes a task with the specified ID from the storage.

func GetListOfTasks

func GetListOfTasks(storage *storage.Storage) ([]util.Task, error)

GetListOfTasks retrieves a list of all tasks stored in the storage.

func UpdateTask

func UpdateTask(storage *storage.Storage, updatedTask *util.Task) error

UpdateTask updates an existing task with the provided updated task details in the storage.

Types

This section is empty.

Jump to

Keyboard shortcuts

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