Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidReqs = errors.New("could not make sense of requirements") ErrListProcess = errors.New("could not fetch task list") )
View Source
var (
ErrCouldNotFetchProjects = errors.New("could not fetch projects")
)
View Source
var (
ErrFetchProcess = errors.New("could not fetch tasks")
)
View Source
var (
ErrInboxProcess = errors.New("could not process inbox")
)
View Source
var (
ErrNewTask = errors.New("could not add new task")
)
View Source
var (
ErrRecurProcess = errors.New("could not generate tasks from recurrer")
)
View Source
var (
ErrSendTasks = errors.New("could not send tasks")
)
View Source
var (
ErrUpdateTask = errors.New("could not update tsk")
)
Functions ¶
This section is empty.
Types ¶
type Fetch ¶
type Fetch struct {
// contains filtered or unexported fields
}
Fetch fetches all tasks in regular folders from the remote repository and overwrites what is stored locally
func NewFetch ¶
func NewFetch(remote *storage.RemoteRepository, local storage.LocalRepository, folders ...string) *Fetch
func (*Fetch) Process ¶
func (s *Fetch) Process() (*FetchResult, error)
type FetchResult ¶
type Inbox ¶
type Inbox struct {
// contains filtered or unexported fields
}
Inbox processes all messages in INBOX in a remote repository
func NewInbox ¶
func NewInbox(repo *storage.RemoteRepository) *Inbox
func (*Inbox) Process ¶
func (inbox *Inbox) Process() (*InboxResult, error)
type InboxResult ¶
type List ¶
type List struct {
// contains filtered or unexported fields
}
List finds all tasks that satisfy the given requirements
func (*List) Process ¶
func (l *List) Process() (*ListResult, error)
type ListReqs ¶
type ListReqs struct { Due task.Date IncludeBefore bool Folder string Project string ApplyUpdates bool }
ListReqs specifies the requirements in AND fashion for a list of tasks
type ListResult ¶
type New ¶
type New struct {
// contains filtered or unexported fields
}
func NewNew ¶
func NewNew(local storage.LocalRepository, update *task.LocalUpdate) *New
type Projects ¶
type Projects struct {
// contains filtered or unexported fields
}
func NewProjects ¶
func NewProjects(local storage.LocalRepository) *Projects
type Recur ¶
type Recur struct {
// contains filtered or unexported fields
}
Recur generates new tasks from a recurring task for a given day
func NewRecur ¶
func NewRecur(repo *storage.RemoteRepository, disp *storage.Dispatcher, daysAhead int) *Recur
func (*Recur) Process ¶
func (recur *Recur) Process() (*RecurResult, error)
type RecurResult ¶
type Send ¶
type Send struct {
// contains filtered or unexported fields
}
Send sends local tasks that need to be dispatched
func NewSend ¶
func NewSend(local storage.LocalRepository, disp *storage.Dispatcher) *Send
Source Files
¶
Click to show internal directories.
Click to hide internal directories.