dto

package
v0.0.0-...-f83b169 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2020 License: MIT Imports: 2 Imported by: 0

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
)

Jump to

Keyboard shortcuts

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