Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CSVFormatter ¶
type CSVFormatter struct{}
type ExportData ¶ added in v0.2.0
type ExportData struct {
Lists []ExportList `json:"lists" yaml:"lists" toml:"lists"`
Tasks []ExportTask `json:"tasks" yaml:"tasks" toml:"tasks"`
}
type ExportList ¶ added in v0.2.0
type ExportTask ¶ added in v0.2.0
type ExportTask struct {
Title string `json:"Title" yaml:"Title" toml:"Title"`
Description *string `json:"Description,omitempty" yaml:"Description,omitempty" toml:"Description,omitempty"`
ListName string `json:"ListName" yaml:"ListName" toml:"ListName"`
Priority *string `json:"Priority,omitempty" yaml:"Priority,omitempty" toml:"Priority,omitempty"`
Deadline *time.Time `json:"Deadline,omitempty" yaml:"Deadline,omitempty" toml:"Deadline,omitempty"`
Status bool `json:"Status" yaml:"Status" toml:"Status"`
CompletedAt *time.Time `json:"CompletedAt,omitempty" yaml:"CompletedAt,omitempty" toml:"CompletedAt,omitempty"`
CreatedAt time.Time `json:"CreatedAt" yaml:"CreatedAt" toml:"CreatedAt"`
UpdatedAt *time.Time `json:"UpdatedAt,omitempty" yaml:"UpdatedAt,omitempty" toml:"UpdatedAt,omitempty"`
}
type Formatter ¶
type Formatter interface {
Format(lists []model.List, tasks []model.Task) (map[string][]byte, error)
}
func GetFormatter ¶
type ImportResult ¶ added in v0.2.0
type ImportResult struct {
ListsCreated int
ListsMerged int
TasksImported int
TasksSkipped []SkippedTask
}
type JSONFormatter ¶
type JSONFormatter struct{}
type SkippedTask ¶ added in v0.2.0
type TOMLFormatter ¶
type TOMLFormatter struct{}
Click to show internal directories.
Click to hide internal directories.