Documentation ¶
Index ¶
- func ChangeTask(id string, task *models.Task) error
- func FilterTasks(filter interface{}) ([]*models.Task, error)
- func FindTask(id string) (*models.Task, error)
- func GetDbCollection(dbContext context.Context, database string, collection string) (*mongo.Collection, error)
- func InsertTask(task *models.Task) error
- func RemoveTask(id string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FilterTasks ¶
FilterTasks -> filter collection tasks
func GetDbCollection ¶
func GetDbCollection(dbContext context.Context, database string, collection string) (*mongo.Collection, error)
GetDbCollection -> mongo collection
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.