Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var AllModels = []interface{}{&Task{}}
AllModels is a list of all data models
Functions ¶
This section is empty.
Types ¶
type Task ¶
type Task struct { gorm.Model // Description is the description of the task Description string `gorm:"size:255"` // Due is the due date for the task Due time.Time `gorm:"index:ind_due"` // Estimate is the estimated time to complete the task Estimate time.Duration // Status Status TaskStatus `gorm:"index:ind_status"` }
Task is a scheduled task
type TaskStatus ¶
type TaskStatus uint64
TaskStatus is the status for the task ses const values for details
const ( // Open is the status for active, planned tasks Open TaskStatus = iota + 1 // Closed is the status for tasks that had been completed Closed // Deleted is the status for deleted tasks Deleted )
Click to show internal directories.
Click to hide internal directories.