Documentation ¶
Index ¶
- Constants
- func GetCaldavTodosForTasks(list *models.ListWithTasksAndBuckets, listTasks []*models.TaskWithComments) string
- func ParseEvents(config *Config, events []*Event) (caldavevents string)
- func ParseTaskFromVTODO(content string) (vTask *models.Task, err error)
- func ParseTodos(config *Config, todos []*Todo) (caldavtodos string)
- type Alarm
- type Config
- type Event
- type Todo
Constants ¶
View Source
const DateFormat = `20060102T150405`
DateFormat is the caldav date format
Variables ¶
This section is empty.
Functions ¶
func GetCaldavTodosForTasks ¶ added in v0.18.0
func GetCaldavTodosForTasks(list *models.ListWithTasksAndBuckets, listTasks []*models.TaskWithComments) string
func ParseEvents ¶
ParseEvents parses an array of caldav events and gives them back as string
func ParseTaskFromVTODO ¶ added in v0.18.0
func ParseTodos ¶
ParseTodos returns a caldav vcalendar string with todos
Types ¶
type Event ¶
type Event struct { Summary string Description string UID string Alarms []Alarm Color string Timestamp time.Time Start time.Time End time.Time }
Event holds a single caldav event
type Todo ¶
type Todo struct { // Required Timestamp time.Time UID string // Optional Summary string Description string Completed time.Time Organizer *user.User Priority int64 // 0-9, 1 is highest RelatedToUID string Color string Start time.Time End time.Time DueDate time.Time Duration time.Duration Created time.Time Updated time.Time // last-mod }
Todo holds a single VTODO
Click to show internal directories.
Click to hide internal directories.