db

package
v0.0.0-...-fc30598 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompleteTask

func CompleteTask(taskID string, task *models.Task) (*models.Task, error)

CompleteTask marchează un task ca fiind completat

func ConnectToAtlas

func ConnectToAtlas() *mongo.Client

func CreateRoom

func CreateRoom(name string) (*models.Room, error)

CreateRoom creează o cameră nouă

func CreateTask

func CreateTask(task *models.Task) (*models.Task, error)

CreateTask creează un task nou

func DeleteTask

func DeleteTask(taskID string) (*mongo.DeleteResult, error)

DeleteTask șterge un task

func ReadAllRooms

func ReadAllRooms() ([]*models.Room, error)

ReadAllRooms obține toate camerele din colecție

func ReadAllTasksInRoom

func ReadAllTasksInRoom(roomID string) ([]*models.Task, error)

ReadAllTasksInRoom returnează toate task-urile dintr-o cameră

func ReadRoomByName

func ReadRoomByName(name string) (*models.Room, error)

ReadRoomByName obține o cameră după nume

func UpdateTask

func UpdateTask(taskID string, task *models.Task) (*models.Task, error)

UpdateTask actualizează un task

Types

This section is empty.

Jump to

Keyboard shortcuts

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