db

package
v0.0.0-...-05a3432 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: AGPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	Connect() error
	Print()
	GetTags() ([]DBTag, error)
	GetTask(id string) (*DBTask, error)
	GetTasks(listId string) ([]DBTask, error)
	GetLists() ([]DBList, error)
	CreateTask(content string) (string, error)
	CreateList(content string) error
}

type DBList

type DBList struct {
	ID         string
	Title      string
	CountTasks int32
}

type DBTag

type DBTag struct {
	ID    string
	Title string
}

type DBTask

type DBTask struct {
	ID            string
	Content       string
	ParentId      string
	ParentType    string
	CountSubitems int32
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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