Documentation ¶
Index ¶
- type Model
- func (m Model) AutoMigrate() error
- func (m Model) DeleteProject(id int) error
- func (m Model) DeleteTask(id uint) error
- func (m Model) GetTask(id uint) (*Task, error)
- func (m Model) GetTasks(dueStart int64, dueEnd int64) (*[]Task, error)
- func (m Model) IsErrNotFound(err error) bool
- func (m Model) PutTask(task *Task) error
- func (m Model) UpdateProject(project *Project) error
- func (m Model) UpdateTask(task *Task) error
- type Project
- type Task
- type TaskStatus
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (Model) AutoMigrate ¶
func (Model) DeleteProject ¶
func (Model) DeleteTask ¶
func (Model) IsErrNotFound ¶
func (Model) UpdateProject ¶
func (Model) UpdateTask ¶
type TaskStatus ¶
type TaskStatus uint8
const ( Todo TaskStatus = 0 Done TaskStatus = 1 Doing TaskStatus = 2 )
Click to show internal directories.
Click to hide internal directories.