tools

package
v0.0.0-...-adfe93d Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateEventsFromTask

func CreateEventsFromTask(db *db.DB, accountID int, ct *models.CalendarTask) error

CreateEventsFromTask creates and distributes events using a task which contains the total amount of hours needed to finish the task and the deadline. Also deletes existing events with the same task id.

Types

type Settings

type Settings struct {
	PreferredTime   string `json:"preferred_time"`
	PreferredLength string `json:"preferred_length"`
}

Settings holds the user settings from the database account JSON column

Jump to

Keyboard shortcuts

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