db

package
v0.0.0-...-cd063a1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoDB

type MongoDB struct {
	// contains filtered or unexported fields
}

func (*MongoDB) AddTask

func (db *MongoDB) AddTask(task tasks.Task) error

func (*MongoDB) Connect

func (db *MongoDB) Connect() error

func (*MongoDB) DeleteTask

func (db *MongoDB) DeleteTask(id string) error

func (*MongoDB) GetTask

func (db *MongoDB) GetTask(taskID string) (tasks.Task, bool)

func (*MongoDB) GetTasks

func (db *MongoDB) GetTasks(ownerID string) ([]tasks.Task, error)

Jump to

Keyboard shortcuts

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