ticktick

package
v0.24.6 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: AGPL-3.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Migrator

type Migrator struct {
}

func (*Migrator) Migrate

func (m *Migrator) Migrate(user *user.User, file io.ReaderAt, size int64) error

Migrate takes a ticktick export, parses it and imports everything in it into Vikunja. @Summary Import all projects, tasks etc. from a TickTick backup export @Description Imports all projects, tasks, notes, reminders, subtasks and files from a TickTick backup export into Vikunja. @tags migration @Accept x-www-form-urlencoded @Produce json @Security JWTKeyAuth @Param import formData string true "The TickTick backup csv file." @Success 200 {object} models.Message "A message telling you everything was migrated successfully." @Failure 500 {object} models.Message "Internal server error" @Router /migration/ticktick/migrate [post]

func (*Migrator) Name

func (m *Migrator) Name() string

Name is used to get the name of the ticktick migration - we're using the docs here to annotate the status route. @Summary Get migration status @Description Returns if the current user already did the migation or not. This is useful to show a confirmation message in the frontend if the user is trying to do the same migration again. @tags migration @Produce json @Security JWTKeyAuth @Success 200 {object} migration.Status "The migration status" @Failure 500 {object} models.Message "Internal server error" @Router /migration/ticktick/status [get]

Jump to

Keyboard shortcuts

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