Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DB *gorm.DB
Functions ¶
func IncPendingCount ¶
func IncPendingCount(id uint)
func InitializeDB ¶
func InitializeDB()
Types ¶
type RecurTask ¶
type Stack ¶
Skipping priority field, just sort them alphabetically
func FetchAllStacks ¶
func InitializeStacks ¶
func (Stack) PendingRecurringCount ¶
type Task ¶
type Task struct { gorm.Model Title string `gorm:"notnull"` Description string Steps []Step Deadline time.Time Priority int //3: High, 2: Mid, 1: Low, 0: No Priority IsFinished bool IsRecurring bool StartTime time.Time //Applicable only for recurring tasks RecurrenceInterval int // in days RecurChildren []RecurTask StackID uint }
func (Task) FetchAllRecurTasks ¶
func (Task) LatestRecurTask ¶
func (Task) RemoveFutureRecurTasks ¶
func (t Task) RemoveFutureRecurTasks()
Click to show internal directories.
Click to hide internal directories.