repositories

package
v0.0.0-...-6b14d14 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ChangeTask

func ChangeTask(id string, task *models.Task) error

ChangeTask -> update task

func FilterTasks

func FilterTasks(filter interface{}) ([]*models.Task, error)

FilterTasks -> filter collection tasks

func FindTask

func FindTask(id string) (*models.Task, error)

FindTask -> find task by id

func GetDbCollection

func GetDbCollection(dbContext context.Context, database string, collection string) (*mongo.Collection, error)

GetDbCollection -> mongo collection

func InsertTask

func InsertTask(task *models.Task) error

InsertTask -> create new task

func RemoveTask

func RemoveTask(id string) error

RemoveTask -> delete task

Types

This section is empty.

Jump to

Keyboard shortcuts

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