backend

package
v0.43.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: MPL-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend interface {
	Title() string
	Setup(*config.Config)
	BuildProjects() []*Project
	GetProject(string) *Project
	LoadTasks(string) ([]Task, error)
	CloseTask(*Task) error
	DeleteTask(*Task) error
	Sources() []string
}

type Project

type Project struct {
	ID   string
	Name string

	Index int
	Tasks []Task
	Err   error
	// contains filtered or unexported fields
}

func (*Project) CloseSelectedTask

func (proj *Project) CloseSelectedTask()

func (*Project) DeleteSelectedTask

func (proj *Project) DeleteSelectedTask()

func (*Project) IsLast

func (proj *Project) IsLast() bool

func (*Project) LongestLine

func (proj *Project) LongestLine() int

type Task

type Task struct {
	ID        string
	Completed bool
	Name      string
}

type Todoist

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

func (*Todoist) BuildProjects

func (todo *Todoist) BuildProjects() []*Project

func (*Todoist) CloseTask

func (todo *Todoist) CloseTask(task *Task) error

func (*Todoist) DeleteTask

func (todo *Todoist) DeleteTask(task *Task) error

func (*Todoist) GetProject

func (todo *Todoist) GetProject(id string) *Project

func (*Todoist) LoadTasks

func (todo *Todoist) LoadTasks(id string) ([]Task, error)

func (*Todoist) Setup

func (todo *Todoist) Setup(config *config.Config)

func (*Todoist) Sources

func (todo *Todoist) Sources() []string

func (*Todoist) Title

func (todo *Todoist) Title() string

type Trello

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

func (*Trello) BuildProjects

func (todo *Trello) BuildProjects() []*Project

func (*Trello) CloseTask

func (todo *Trello) CloseTask(task *Task) error

func (*Trello) DeleteTask

func (todo *Trello) DeleteTask(_ *Task) error

func (*Trello) GetProject

func (todo *Trello) GetProject(id string) *Project

func (*Trello) LoadTasks

func (todo *Trello) LoadTasks(id string) ([]Task, error)

func (*Trello) Setup

func (todo *Trello) Setup(config *config.Config)

func (*Trello) Sources

func (todo *Trello) Sources() []string

func (*Trello) Title

func (todo *Trello) Title() string

Jump to

Keyboard shortcuts

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