process

package
v0.0.0-...-4b6167c Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2021 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInboxProcess = errors.New("could not process inbox")
)
View Source
var (
	ErrRecurProcess = errors.New("could not generate tasks from recurrer")
)

Functions

This section is empty.

Types

type Inbox

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

func NewInbox

func NewInbox(repo *task.RemoteRepository) *Inbox

func (*Inbox) Process

func (inbox *Inbox) Process() (*InboxResult, error)

type InboxResult

type InboxResult struct {
	Duration string `json:"duration"`
	Count    int    `json:"count"`
}

type Recur

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

func NewRecur

func NewRecur(repo *task.RemoteRepository, disp *task.Dispatcher, daysAhead int) *Recur

func (*Recur) Process

func (recur *Recur) Process() (*RecurResult, error)

type RecurResult

type RecurResult struct {
	Duration string `json:"duration"`
	Count    int    `json:"count"`
}

Jump to

Keyboard shortcuts

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