services

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2021 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 TaskService

type TaskService struct {
	Collection *mongo.Collection
}

func NewTaskService

func NewTaskService(db *mongo.Database, collectionName string) TaskService

func (TaskService) CreateTask

func (service TaskService) CreateTask(Task models.Task) error

func (TaskService) DeleteTask

func (service TaskService) DeleteTask(id string) error

func (TaskService) GetTaskById

func (service TaskService) GetTaskById(id string) (models.Task, error)

func (TaskService) GetTasks

func (service TaskService) GetTasks() ([]models.Task, error)

func (TaskService) UpdateTask

func (service TaskService) UpdateTask(id string, Task models.Task) error

Jump to

Keyboard shortcuts

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